rajithd / spring-boot-oauth2

Spring Boot Oauth2 with H2 database
208 stars 166 forks source link

Spring config #1

Closed gariem closed 8 years ago

gariem commented 8 years ago

Have you tried to use spring config in your project? Everytime I tried, I was not able to retrieve configuration from config files (properties) or config server using @Value annotation. I'm not sure if it's a conflict or anything. Do you have any idea?

rajithd commented 8 years ago

Is it a spring-boot project ? If so you can use application.properties file to hold configuration (@Value). If not you have to configure your property source. Better if you can post your spring config.

gariem commented 8 years ago

Hey, can you please close this issue? I realized that the problem was originated by the MyBatis @MapperScan annotation, which is instantiated before the properties place holder.