![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
耳东的慢生活
这个作者很懒,什么都没留下…
展开
-
WebSocketServer @Autowired 为 null
解决方案:static OpLogService opLogService;static UserService userService;@Autowiredpublic void setOpLogService(OpLogService opLogService) { WebSocketServer.opLogService = opLogService;}@Autowiredpublic void setUserService(UserService userServic原创 2021-07-09 13:28:27 · 418 阅读 · 1 评论 -
java -jar 指定字符集、端口、debug
java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar demo.jar 远程debug端口8000java -Dfile.encoding=utf-8 -jar XXX.jar 指定字符集java -jar springboot jar --server.port=8181 指定端口java -jar springboot jar --spring.profiles.active=dev 指.原创 2021-05-07 10:46:56 · 2789 阅读 · 0 评论 -
idea启动报错:Error running ‘XeleratorApplication‘: Command line is too long. Shorten command line for ..
原文链接,亲测有用。不知道原因,有知道的可以评论分享,感谢。新项目再Idea里面启动的时候,有的时候报错Error running ‘Application’: Command line is too long. Shorten command line for Application or aalso for Spring Boot default configuration,报错信息如下所示怎么解决呢,首先找到项目里面的idea/workspace.xml文件,然后再找到<compon.转载 2020-12-29 09:22:15 · 171 阅读 · 0 评论 -
idea引入gradle build出现问题
因为问题造成的原因可能有多种,我说一下我遇到的问题:可以正常编译成功、可以刷新,但是lombok没有生成对应的代码:从截图中可以看到:lombok 需要开启Annotation Processing.开启方法:原创 2020-12-29 09:13:48 · 2249 阅读 · 0 评论 -
springboot 整合activiti5.22启动时可能会出现的错误及启动时没有自动创建表
1.org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenticationConfigurerAdapter.class] cannot be opened because it does not exist原因:SpringBoot 2.0的start中默认有一个"spring-boot-autoconfigure-2.0..RELEASE.jar",如果你还引用了activiti的..原创 2020-08-11 11:31:26 · 3031 阅读 · 0 评论 -
Springboot 使用BindingResult和自定义注解统一校验参数
1.参数定义:(注意:@NotEmpty用在集合类上面 ,@NotBlank用在String上面 , @NotNull用在基本类型上)2.controller 代码:3.自定义注解:4.注解AOP:(切面的统一处理逻辑根据各自项目自行实现)原创 2020-07-27 14:36:35 · 1879 阅读 · 0 评论