摘要: Service @Service @EnableScheduling public class ShareResourceServiceImpl { /** * 定时缓存共享资源到redis */ // @Scheduled(cron = "*/5 * * * * ?")//每五秒钟 // @Sch 阅读全文
posted @ 2022-09-07 21:50 Ideaway 阅读(356) 评论(0) 推荐(0)
摘要: 动态url查询数据库中所有的表 Controller /** * 根据数据库信息查询所有表 * @param userName 用户名 * @param password 密码 * @param driverName 驱动名称 * @param databaseUrl 链接url * @return 阅读全文
posted @ 2022-09-06 14:41 Ideaway 阅读(98) 评论(0) 推荐(0)
摘要: 动态url查询数据库中所有的表 Controller /** * 根据数据库信息查询所有表 * @param userName 用户名 * @param password 密码 * @param driverName 驱动名称 * @param databaseUrl 链接url * @return 阅读全文
posted @ 2022-09-05 17:10 Ideaway 阅读(249) 评论(0) 推荐(0)
摘要: @Autowired private SqlSessionFactory sqlSessionFactory; //通过Mybatis batch模式批量插入群组人员 //开启BATCH批量模式 SqlSession sqlSession = sqlSessionFactory.openSessio 阅读全文
posted @ 2022-07-27 14:19 Ideaway 阅读(1486) 评论(0) 推荐(0)
摘要: 找到安装目录,然后寻找data文件夹下面的pg_hba.conf 修改文件内容 将最下面的 scram-sha-256 加密方式修改为 trust # "local" is for Unix domain socket connections only local all all scram-sha 阅读全文
posted @ 2022-07-18 14:01 Ideaway 阅读(9052) 评论(3) 推荐(2)
摘要: 一、问题现象 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-07-19 10:47:22.557 ERROR 阅读全文
posted @ 2022-07-01 15:46 Ideaway 阅读(2395) 评论(0) 推荐(0)
摘要: --根据角色id 递归查询此角色以及其子角色 WITH RECURSIVE tir AS ( SELECT tir1.* FROM t_id_role tir1 WHERE tir1.id in ('027c6a0e7fcbc405f2ebb0f394388699') UNION ALL SELEC 阅读全文
posted @ 2022-05-07 17:42 Ideaway 阅读(879) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/jy00733505/article/details/107524688 在工程中 /** * 判断此角色是否已经分配给用户 * @param id * @return */ @GetMapping("/existsUserByRoleId") @Resp 阅读全文
posted @ 2022-05-07 17:23 Ideaway 阅读(1643) 评论(0) 推荐(0)
摘要: 批量图片裁剪 pom.xml <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>17.0</version> </dependency> <dependency> <gro 阅读全文
posted @ 2021-05-17 15:56 Ideaway 阅读(585) 评论(0) 推荐(0)
摘要: Mysql /** * 获取一个新的科目编码 * * @param parentCode 上级科目代码 * @author 吕嘉鸣 */ @Override public String getNewCode(String subjectTableName, Long deptId, String p 阅读全文
posted @ 2021-05-12 22:51 Ideaway 阅读(104) 评论(0) 推荐(0)