02 2022 档案

摘要:只是记录一下,没有彻底解决这个问题。 出现这个问题的场景是这样的:使用Druid的DataSource然后通用自己定制的代码重新在Spring中注册了一下,然后访问数据库的DAO就出现了datasource already closed. 找到这样的一篇网文(https://blog.csdn.ne 阅读全文
posted @ 2022-02-25 22:42 培轩 阅读(3706) 评论(0) 推荐(0) 编辑
摘要:InputStream in = SimplePropertiesUtil.class.getClassLoader().getResourceAsStream(propertiesName); 这条语句已经运行过没有问题,但是有时会出现NPE,提示inStream parameter is nul 阅读全文
posted @ 2022-02-18 23:09 培轩 阅读(742) 评论(0) 推荐(0) 编辑
摘要:在使用SpringBoot开发中经常使用配置文件来定义应用需要的数据项,例如数据字典,开始使用properties,然后使用XML,现在常使用YML 使用Properties格式没有层次,XML格式解析麻烦,编写复杂,YML简洁有层次应用快捷。于是在开发中使用YML定义如下数据项 data: dic 阅读全文
posted @ 2022-02-16 22:57 培轩 阅读(180) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/67775360/springboot-insufficient-memory-for-the-java-runtime-environment SpringBoot insufficient memory for the Ja 阅读全文
posted @ 2022-02-11 10:44 培轩 阅读(40) 评论(0) 推荐(0) 编辑
摘要:在使用SELECT查询时IN比OR的效率好。那么在Spring中如何使用IN()呢? 这是我原来的使用方式,用字符串拼接: StringBuilder buf = new StringBuilder("SELECT name FROM pos_user WHERE id IN ("); // ids 阅读全文
posted @ 2022-02-07 15:46 培轩 阅读(1171) 评论(0) 推荐(0) 编辑
摘要:https://c.runoob.com/front-end/854/ ****菜鸟工具**** 正则表达式在线测试 在线Java正则表达式测试 https://www.stackoverflow.wiki/tools/reg.jsp 常用正则表达式收集: 一、校验数字的表达式 数字:^[0-9]* 阅读全文
posted @ 2022-02-06 22:24 培轩 阅读(3831) 评论(0) 推荐(0) 编辑
摘要:FreeMarker 简介 http://www.freemarker.net/ FreeMarker官方网站:https://freemarker.apache.org FreeMarker中文官方参考手册:http://freemarker.foofun.cn/ 阅读全文
posted @ 2022-02-02 12:13 培轩 阅读(55) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示