上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 222 下一页
摘要: 转自:https://blog.csdn.net/zhulaosan/article/details/101061030 一、 @Value(“#{}”) @Value(“#{}”) 表示SpEl表达式通常用来获取bean的属性,或者调用bean的某个方法。当然还有可以表示常量 用 @Value(“ 阅读全文
posted @ 2020-09-21 14:49 Sharpest 阅读(1622) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/dianzan/p/11181144.html //指向表table_biao @TableName("table_biao)public class UserThirdLogin extends Model<UserThirdLogin>{ p 阅读全文
posted @ 2020-09-21 14:48 Sharpest 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/lzb348110175/article/details/105139372 1.yml 配置文件值注入 2.properties 配置文件值注入 我们已经知道 Spring Boot 中使用的是.properties 和 .yml 两个格式的配置文 阅读全文
posted @ 2020-09-21 14:45 Sharpest 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/lzb348110175/article/details/105147070/ 我们了解完 @ConfigurationProperties 注解的使用,知道了它可以将 application.yml 或 application.properties 阅读全文
posted @ 2020-09-21 14:43 Sharpest 阅读(2100) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.codeneko.cn/?p=175 在SpringBoot使用@ConfigurationProperties注解读取yml/properties配置文件参数 1. 添加依赖 在pom文件中添加依赖 <dependency> <groupId>org.springfr 阅读全文
posted @ 2020-09-21 14:42 Sharpest 阅读(2667) 评论(0) 推荐(1) 编辑
摘要: 转自:https://blog.csdn.net/jokerzhan/article/details/88085127/ 自定义结果映射规则 <!-- resultMap自定义某个javabean的封装规则 type:自定义规则的java类型 id:唯一id方便引用 --> <resultMap t 阅读全文
posted @ 2020-09-21 14:40 Sharpest 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.jb51.net/article/184822.htm Spring @Configuration注解 Spring3.0开始,@Configuration用于定义配置类,定义的配置类可以替换xml文件,一般和@Bean注解联合使用。 @Configuration注解主 阅读全文
posted @ 2020-09-21 14:09 Sharpest 阅读(7970) 评论(0) 推荐(1) 编辑
摘要: 转自:https://blog.51cto.com/seetobest/1397471 group_contact 要连接的字段,把查询的字段连接起来 原数据: wKioL1NP2zaytnv6AACXXwCf-1I568.jpg select sex,group_contact(name) fro 阅读全文
posted @ 2020-09-21 14:07 Sharpest 阅读(1727) 评论(0) 推荐(0) 编辑
摘要: 转自:https://zhuanlan.zhihu.com/p/109324577 MySQL NOW() 函数 用于显示系统时间(注:日期+时间) 函数语法 SELECT NOW(); 实例 案例1 SELECT NOW(),CURDATE(),CURTIME(); 结果: 编辑于 04-30 阅读全文
posted @ 2020-09-21 14:06 Sharpest 阅读(3377) 评论(0) 推荐(0) 编辑
摘要: 转自:http://c.biancheng.net/mysql/datediff.html MySQL 中 DATEDIFF(date1,date2) 返回起始时间 date1 和结束时间 date2 之间的天数。date1 和 date2 为日期或 date-and-time 表达式。计算时只用到 阅读全文
posted @ 2020-09-21 14:05 Sharpest 阅读(1230) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 222 下一页