摘要: 在insert标签中添加属性: keyProperty="id" useGeneratedKeys="true"` keyProperty 的值 表示 返回给实体(返回给插入的实体,而不是返回值) useGeneratedKeys="true" 使用自增的键 阅读全文
posted @ 2021-12-28 21:43 gain&get 阅读(87) 评论(0) 推荐(0)
摘要: @Value 和 @ConfigurationProperties :这两者都可以读取配置文件中的数据 下面例子中的access.urls 的值只能通过 @ConfigurationProperties 得到 @Value 注解是无法获取的 access: urls: - /login.* - /j 阅读全文
posted @ 2021-12-28 21:13 gain&get 阅读(365) 评论(0) 推荐(0)