logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

mybatisplus自动填充gmt_modified失败

根本原因是我把注解写错了@ApiModelProperty(value = "创建时间")@TableField(fill= FieldFill.INSERT)private LocalDateTime gmtCreate;@ApiModelProperty(value = "更新时间")@TableField(fill = FieldFill.INSERT_UPDATE)//我把FieldFil

#java#java-ee#spring boot
spring boot 注入原生web组件

1.使用servlet API写Listener,filter,servlet的实现类,类上加对应注解2.使用下面的方法写配置类@Configurationpublic class MyRegistConfig {@Beanpublic ServletRegistrationBean myServlet(){MyServlet myServlet = new MyServlet();return

#java#java-ee#spring boot
到底了