最近公司内部系统要做数据对接,故使用 jersey 来做 restful webservice 接口设计.由于 spring boot 已经集成 jersey,估计直接导入 spring-boot-starter-jersey 就好了. 在测试时候除了遇到中文乱码之外花费了比较长的时间,其余暂时没遇到大的问题.然而发布的时候发现了一个坑. public class JerseyConfig extends ResourceConfig { public JerseyConfig(){ //reg…
多文件上传中遇到上传文件大小的问题 org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field fileName exceeds its maximum permitted size of 1048576 bytes. Spring Boot默认文件上传大小为2M,多文档上传中总是出现文件大小超出限度 解决方法: a.在application.properties文…