摘要: 有时因为安全问题,在配置文件中配置的数据库用户名和密码需要进行加密处理,Spring Boot下可以使用jasypt进行加密处理 Maven导入: <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt- 阅读全文
posted @ 2022-08-19 15:38 独孤无绝 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 使用NamedParameterJdbcTemplate进行数据库操作时,常用query、queryForObject、queryForList、queryForMap方法说明记录 【query方法】返回结果是list,且list中元素必须是自定义bean;不能是list<String>。 【que 阅读全文
posted @ 2022-08-19 15:04 独孤无绝 阅读(1715) 评论(0) 推荐(0) 编辑