08 2019 档案

摘要:一、mapper接口中的方法解析mapper接口中的函数及方法 方法 功能说明int countByExample(UserExample example) thorws SQLException 按条件计数int deleteByPrimaryKey(Integer id) thorws SQLE 阅读全文
posted @ 2019-08-16 18:01 yxj9536 阅读(672) 评论(0) 推荐(0) 编辑
摘要:在实体类中对应的字段上添加注解 阅读全文
posted @ 2019-08-10 15:01 yxj9536 阅读(8310) 评论(1) 推荐(0) 编辑
摘要:方法一: @Value注解的方式取值 设定appliction.properties的配置信息 使用@Value取值 页面展示 小明==》性别:boy 年龄:18 分数:98 方法二: 使用@ConfigurationProperties赋值给实体类 设定appliction.yml的配置信息 @C 阅读全文
posted @ 2019-08-01 14:05 yxj9536 阅读(184) 评论(0) 推荐(0) 编辑