Spring Boot spring-boot-configuration-processor用途如下。
2020/9/30
2020/9/29
2020/9/27
Spring Boot @PropertySource 依 spring.profiles.active載入對應的properties
Spring可在application.properties設定spring.profiles.active的值來切換不同環境用的application配置檔。而application外的自訂配置檔透過@PropertySource載入時也要依spring.profiles.active載入對應的配置檔的設定如下。
2020/9/26
Spring Data JPA @IdClass複合主鍵範例 composite key example
Spring Data JPA使用@IdClass設定複合主鍵(composite primary key)範例如下。
2020/9/25
訂閱:
文章 (Atom)