摘要: create temporary table tmp_tableselect *, ROW_NUMBER() over (order by diff) as rank_numfrom (SELECT *, sum(num) over (order by overdate ROWS BETWEEN U 阅读全文
posted @ 2024-04-15 16:39 应景的BGM 阅读(9) 评论(0) 推荐(0)
摘要: 切面注解+将方法误写为 私有的 private类型。导致service注入失败 原因为容器扫描bean生成代理类的时候,public和protected方法可以被正常代理,而private方法的不会被代理,属性的注入也是在代理类中完成,所以public/protected方法获取的属性是完成注入的属 阅读全文
posted @ 2024-03-21 16:48 应景的BGM 阅读(183) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-12-28 16:42 应景的BGM 阅读(67) 评论(0) 推荐(0)
摘要: <resultMap id="resuleMap" type="com.com.entity.xxx"> <id property="id" column="id"></id> <result property="xxx" column="xxx"></result > <result proper 阅读全文
posted @ 2023-12-15 15:38 应景的BGM 阅读(34) 评论(0) 推荐(0)
摘要: 数据库create_by、update_by字段自动填充sys_user——username 阅读全文
posted @ 2023-02-24 09:45 应景的BGM 阅读(221) 评论(0) 推荐(0)
摘要: pageSize为-1,查询全部xxx_begin\xxx_end 自动寻找范围*x* 模糊查询column:xxx order:xxx 排序 原生mp需要在对应字段上加 @TableField(condition=Sqlondition.LIKE) 阅读全文
posted @ 2023-02-22 09:37 应景的BGM 阅读(206) 评论(0) 推荐(0)
摘要: 依赖 <!--swagger--> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> </dependency> <dependency> <groupId>io.spri 阅读全文
posted @ 2021-09-02 14:52 应景的BGM 阅读(27) 评论(0) 推荐(0)
摘要: #mybatis日志 mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl #全局设置主键生成策略 mybatis-plus.global-config.db-config.id-type=au 阅读全文
posted @ 2021-08-30 16:13 应景的BGM 阅读(33) 评论(0) 推荐(0)
摘要: spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/mybatis_plus?serverTimezone=GMT%2B8 spr 阅读全文
posted @ 2021-08-30 15:45 应景的BGM 阅读(264) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-25 11:27 应景的BGM 阅读(22) 评论(0) 推荐(0)