随笔分类 -  工作 / 工作中可用

摘要:builder.and(Expressions.booleanTemplate("FUNCTION('jsonb_contains', {0}, {1})", dashboardReportsEntity.prepareReportViewMembers, Expressions.template( 阅读全文
posted @ 2023-10-12 16:11 代码红了一大片 阅读(133) 评论(0) 推荐(0)
摘要:初始化方法 @PostConstruct InitializingBean CommandLineRunner ApplicationRunner 先后顺序 @PostConstruct > InitializingBean > CommandLineRunner、ApplicationRunner 阅读全文
posted @ 2023-05-05 18:46 代码红了一大片 阅读(108) 评论(0) 推荐(0)
摘要:#####一、spring boot 的事件由 ApplicationEvent 类及其子类表示。您可以创建自己的事件,只需扩展 ApplicationEvent 类并定义自己的构造函数即可。 ```java public class DomainEvent extends ApplicationE 阅读全文
posted @ 2023-04-23 16:56 代码红了一大片 阅读(262) 评论(0) 推荐(0)
摘要:一、先了解拦截器在http请求中所占的位置 推荐博客https://www.freesion.com/article/6875405887/ shiro配置文件: @Configuration public class ShiroConfig { //配置类的三大属性 //一、shiroFilter 阅读全文
posted @ 2022-04-14 18:07 代码红了一大片 阅读(2627) 评论(0) 推荐(1)
摘要:一、继承接口AbstractRoutingDataSource(mysql) 主要的starter: <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <ver 阅读全文
posted @ 2022-03-14 14:25 代码红了一大片 阅读(3153) 评论(0) 推荐(0)