摘要: 需求:不同的环境有不同的开关属性,比如开发系统,需要关闭短信,微信的通知功能。而演示环境,线上环境则需要打开这些配置。 那么,如何做到呢? 》在properties.application配置 需要在resources下创建 application-{profile}.properties的配置文件 阅读全文
posted @ 2019-05-24 16:14 QH.Thomas 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 注解 @Query 允许在方法上使用 JPQL。 列如: @Query("select u from User u where u.name=?1 and u.department_id=?2") public User findUser(String name,Integer department 阅读全文
posted @ 2019-05-24 10:48 QH.Thomas 阅读(3073) 评论(0) 推荐(0) 编辑