Spring boot org.apache.tomcat.util.http.fileupload.FileUploadBase FileSizeLimitExceededException: The field file exceeds its maximum permitted size of N bytes.

While uploading file using spring boot following error generated commonly while large file try to upload. org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 10 bytes. at org.apache.tomcat.util.http.fileupload.FileUploadBase$FileItemIteratorImpl$FileItemStreamImpl$1.raiseError(FileUploadBase.java:633)…

Read More

role should not start with ‘ROLE_’ since it is automatically inserted. Got ‘ROLE_ADMIN’

Caused by: java.lang.IllegalArgumentException: role should not start with ‘ROLE_’ since it is automatically inserted. Got ‘ROLE_ADMIN’ org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘springSecurityFilterChain’ defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean…

Read More