springboot
shyrainxy
这个作者很懒,什么都没留下…
展开
-
process finished with exit code 1
很多时候我们是这样写的:SpringApplication.run(SignApplication.class, args);这时候报process finished with exit code 1我们也不知道是啥原因也没有更多的错误信息提供给我们定位问题,要解决问题就需要更多的错误信息,所以我们改成: try{ SpringApplication.run(SignApplication.class, args);原创 2021-09-13 18:03:51 · 943 阅读 · 0 评论 -
“Http11NioProtocol: Error reading request, ignored”
That is aknown bugin Apache Tomcat 9.0.24. It is triggered by sending plain text to an TLS enabled connector. It is safe to ignore but since it is rather noisy you probably want to upgrade to the recently released 9.0.26 where this has been fixed.简单来说就..原创 2020-11-28 17:49:10 · 3672 阅读 · 4 评论 -
configuration entry ‘descriptors‘ with value ‘assembly of type java.lang.String to property of type
使用assembly打包的时候,错误内容为:Failedtoexecutegoalorg.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single(default)onprojectdpm.proxy:Unabletoparseconfigurationofmojoorg.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:singleforparamet...原创 2020-11-04 22:54:43 · 343 阅读 · 1 评论 -
springboot配置证书
java证书分为两种,一种是jks编码的,一种是pkcs编码的原创 2020-10-09 10:40:58 · 1458 阅读 · 2 评论 -
spring&springboot中常见常用注解(Controller、Service、Repository、Component、Autowired)
1、@Controller注解用于标记该类为控制器类,提供controller服务(mvc中的c--controller)eg:@Controllerpublic class xxxController{ @RequestMapping public void xxxRequest(HttpServletRequest request){}}2、@Service注解用于标记该类为逻辑处理类,提供controller和dao之间的数据及业务逻辑的处理(co...原创 2020-07-24 20:17:12 · 1765 阅读 · 0 评论 -
java注解(annotation)及反射(reflection)学习
注解的本质是一个接口:Annotation.javapackagejava.lang.annotation;publicinterfaceAnnotation{ booleanequals(Objectobj); inthashCode(); StringtoString(); Class<?extendsAnnotation>annotationType();}注解除了上述的接口外,还有两个重要的枚举类:Elemen...原创 2020-07-21 22:47:08 · 171 阅读 · 0 评论 -
springboot报whitelabel error page的404错误
主要是因为application类的路径放错位置了,正确的位置应该放在项目下面,错误的位置是在项目下面建立一个package,然后放在packgae中了,如下图所示,正确的位置是绿色框所示,错误的位置是红色框所示:...原创 2020-05-26 23:04:50 · 1398 阅读 · 1 评论