12 2021 档案

摘要:1、需要添加在pom.xml中添加 <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.1</version> </dependency 阅读全文
posted @ 2021-12-22 15:51 译林 阅读(169) 评论(0) 推荐(0)
摘要:说明:@JsonPropertyOrder 勇于fastjson 对对象字段实现排序使用 1.@JsonPropertyOrder(value = {"name", "id"}) 明确制定字段排序顺序 name ==》 id 实体类属性 public class WorkingPlace imple 阅读全文
posted @ 2021-12-17 16:22 译林 阅读(1525) 评论(0) 推荐(0)
摘要:PropertyPlaceholderConfigurer Spring中PropertyPlaceholderConfigurer这个类,它是用来解析Java Properties属性文件值,并提供在spring配置期间替换使用属性值。【一】配置惟一PropertyPlaceholderConfi 阅读全文
posted @ 2021-12-13 09:13 译林 阅读(531) 评论(0) 推荐(0)
摘要:1、创建表 CREATE table tb_user ( id serial primary key not null , name varchar(20) not null default '' ) ; comment on column tb_user.id is '主键id'; comment 阅读全文
posted @ 2021-12-08 10:23 译林 阅读(2183) 评论(0) 推荐(0)
摘要:在某些情况下,有可能你会有这种需求:在Spring/SpringMVC项目中,当Spring/SpringMVC启动完成后,你需要执行一个方法来完成某些事件(比如创建网站地图,比如从订阅Redis服务器等),这个时候,可以使用Tomcat/Servlet容器提供的事件回调机制来完成,但是这样有个问题 阅读全文
posted @ 2021-12-08 09:47 译林 阅读(235) 评论(0) 推荐(0)
摘要:1、pom文件中增加swagger饮用 <properties> <swagger.version>2.9.2</swagger.version> </properties> <dependency> <groupId>io.springfox</groupId> <artifactId>sprin 阅读全文
posted @ 2021-12-06 17:31 译林 阅读(115) 评论(0) 推荐(0)
摘要:maven打包编译时后台一直输出警告信息 File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent! 解决办法:pom.xml中增加属性即可解决 <properties> 阅读全文
posted @ 2021-12-01 10:48 译林 阅读(1427) 评论(0) 推荐(0)