Linked Questions

49 votes
4 answers
123k views

I'm trying to load properties from pom.xml into application.properties. I want to create two profiles: dev and prod to use different database urls. I'm using Jenkins as CI, in all my apps (Spring MVC ...
Jakub's user avatar
  • 2,159
16 votes
5 answers
82k views

I am trying to load an external properties file into my spring boot app. initially I used @PropertySource in the config class. but now I want to remove this annotation so the class is not dependent on ...
peekay's user avatar
  • 1,271
16 votes
1 answer
15k views

I'm having difficulty trying to override a property declared in a profile-specific application properties file on the classpath with another value declared in an overrides file on the file system. I ...
Damian's user avatar
  • 273
0 votes
1 answer
6k views

I got a Spring Boot app. I have configured a custom error controller to handle 404 errors. It is returning an empty response. I got log statements which shows that the custom error controller method ...
juniorbansal's user avatar
  • 1,281
1 vote
1 answer
4k views

How to use a application.properties file in Config class application.properties datasource.username=test Config.class @Configuration @EnableTransactionManagement @EnableJpaRepositories( ...
Mukti's user avatar
  • 311
3 votes
2 answers
3k views

I've got a Spring Boot project that builds an executable war and is configured with an application.properties file and a application-dev.properties in src/main/resources. The first line in the ...
David Welch's user avatar
  • 2,001
1 vote
2 answers
2k views

I'm trying to automate the process of deploying code using github and jenkins job to deploy my Springboot Application on AWS . I want to know where should I place the application.properties file in ...
Prashant's user avatar
  • 167
1 vote
1 answer
1k views

i am trying to setup unit tests for some elements to be used within a spring(-boot) application, and i struggled with setup around ConfigurationProperties and EnableConfigurationProperties. the way i ...
tony_k's user avatar
  • 2,071
0 votes
1 answer
1k views

I have an application where I would like to change a datasource password that is stored in a application.yml file. The password in the YML file is stored such as this: ---- spring: profiles: ...
James's user avatar
  • 3,234
1 vote
3 answers
522 views

I followed a simple guide and created a spring-boot based web application on my local, using embedded tomcat, it works fine. The next step I am trying to deploy it onto a remote linux tomcat server. I ...
feichangh's user avatar
  • 1,483
0 votes
1 answer
325 views

I am learning spring boot config externalization. I would like my application to read configuration from any external file (/Users/<userid>/application.properties). I created spring-web project,...
new_programmer's user avatar