![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
qwer12321ck76
这个作者很懒,什么都没留下…
展开
-
spring boot,spring data jpa同一事务内修改不可见
添加链接描述原创 2022-10-15 15:35:52 · 321 阅读 · 0 评论 -
websocket
核心是hashmap 以session为key 以endpoint为value通过endpoint去接收消息发送消息原创 2022-01-25 19:20:13 · 1601 阅读 · 0 评论 -
quartz无法注入springbean的原因
参考:https://zhuanlan.zhihu.com/p/146060950如何解决 Quartz Job 中无法注入 Spring BeanxkcodingxkcodingLater Equals Never问题不知道小伙伴们在 Spring 集成 Quartz 的时候有没有遇到过这样一个问题,就是在 Quartz 的 Job 中 @Autowired 一个 Spring Bean 的时候会报空指针异常。如果在 Spring 中无法使用 @Autowired 进行注入一个 Bea原创 2022-01-07 16:30:48 · 564 阅读 · 1 评论 -
Springboot配置 相关 多个properties
Springboot配置 相关 多个properties要在application.properties指定spring.profiles.active=prod(#spring.profiles.active=@profileActive@ 指定这个可能会不起作用 报错:The following profiles are active: @profileActive@ 无法识别 profileActive)...原创 2021-12-31 21:01:53 · 1153 阅读 · 0 评论 -
quartz定时任务
上图会合并或者说覆盖 到底是谁覆盖谁不知道Schedule每次执行时都会创建新的job和jobDetail@DisallowConcurrentExecution 禁止并发执行多个相同定义的JobDetail 但是可以并发执行多个不同的JobDetail@PersistJobDataAfterExecution 可以持久化JobDetail里datamap的值 保证每次都是上一次执行后的值 对trigger里的datamap无效...原创 2021-12-30 13:03:37 · 77 阅读 · 0 评论 -
mybatis generator plus生成代码
参见:https://www.cnblogs.com/qixingchao/p/14648379.htmlhttps://blog.csdn.net/qwe303137085/article/details/97002023?spm=1001.2014.3001.55061、介绍MybatisMybatis 是操作数据库的框架:提供一种Mapper类,支持用Java代码对数据库进行增删改查。缺点:需要先在xml中写好SQL语句;Mybatis Generator自动为Mybatis生成简单的增原创 2021-12-29 19:11:32 · 531 阅读 · 0 评论 -
网络上搜索的quartz建oracle表语句一直不成功
搜到都是mysql的 改成oracle的就好原创 2021-12-21 19:00:51 · 330 阅读 · 0 评论 -
ORA-28040 数据库兼容性解决方案 没有匹配的验证协议
安装jdbc8 就行 下载地址mavenRepo参考https://blog.csdn.net/qq_29658333/article/details/103957072原创 2021-12-20 14:11:02 · 570 阅读 · 0 评论 -
查询出来的Long数据,最后两位自动转化为0
如上图所示,查询出来的id为Long数据,但是接口返回后id的最后两位自动变为0了。解决方法:如图二所示把id转化为String数据,后两位就不会变为0了map.put会自动把相同key值的数据覆盖将List<Map<String, String>> 改为List<Map<String, Object>>也可以解决,但是我没有验证。...原创 2020-09-25 17:38:57 · 3478 阅读 · 2 评论 -
多数据源配置
https://www.cnblogs.com/aizen-sousuke/p/11756279.html原创 2020-08-26 15:29:38 · 94 阅读 · 0 评论 -
做前后端结合在一起的项目时,页面无法显示,原因如下
controller使用的不是@Controller接口使用的不是@RequestMapping原创 2019-02-21 18:47:06 · 727 阅读 · 0 评论