Category: error handling

springboot upload file set file size limit 0

springboot upload file set file size limit

Hits: 0Error content: org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.impl.SizeLimitExceededException: the request was rejected because its size (39353107) exceeds the configured maximum (10485760) solution: An application.yml add configuration: spring: servlet: multipart: max-request-size: 100MB max-file-size: 100MB Two Application startup classes add beans: @Bean public MultipartConfigElement multipartConfigElement() { MultipartConfigFactory factory = new MultipartConfigFactory(); //Maximum single...

ActiveMQ cannot inject jmsMessagingTemplate 0

ActiveMQ cannot inject jmsMessagingTemplate

Hits: 0An error is reported, showing that JmsMessagingTemplate cannot be injected using jmsMessagingTemplate: solution: Replaced dependencies such as: <dependency> <groupId>org.messaginghub</groupId> <artifactId>pooled-jms</artifactId> </dependency> ps: the springboot version was 2.1.16.RELEASE when I got the error

Springboot mavne project multi-module packaging, error can not find base package, can not find common class, etc. 0

Springboot mavne project multi-module packaging, error can not find base package, can not find common class, etc.

Hits: 0Error example: [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RELEASE:repackage (default) on project jcdemo-common: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RELEASE:repackage failed: Unable to find main class -> [Help 1] ERROR] For more information about the errors...

FastJson I’m careless, I didn’t flash 0

FastJson I’m careless, I didn’t flash

Hits: 0foreword I didn’t flash text I am working on a project recently. When the object is empty, according to the business needs, I wrote an automatic empty method isEmpty(). Code example: import com.alibaba.fastjson.JSON;...