Questions tagged [application.properties]

application.properties is the configuration file to configure dynamic properties for the application. It holds configuration properties in the form of key-value pair

application.properties is the configuration file to configure dynamic properties for the application. It holds configuration properties in the form of key-value pair

409 questions
0
votes
1 answer

How to set value to a property present in application.properties for Spring boot

I have ssl enabled for my spring boot application. I am fetching the keystore password from AWS Secrets Manager through a class in my application. How do I refer to this password in my application.properties?
0
votes
1 answer

Spring boot application-test.properties not initializes inside the tested component

I'm writing a test for a component that takes values from the application.properties. In the test itself the values are picked up correctly from the application-test.properies. I used @TestPropertySource(locations =…
0
votes
1 answer

Springboot external file db configuration

I have application.properties with that…
Helosze
  • 333
  • 2
  • 7
  • 20
0
votes
1 answer

How to get Spring property with embedded property variable as a literal

I currently have a Spring application.properties with 2 properties defined as follows: validator.url=http://location.com/${domain}/${family} query.validator.url=${validator.url} Currently my application resolves query.validator.url to be…
jiveturkey
  • 2,484
  • 1
  • 23
  • 41
0
votes
1 answer

Choosing application.properties using properties-maven-plugin

I have defined several application.properties files in my application. Each one is for different environments. In these files I have the data source defined for each environment. I want to get Maven to choose the correct properties file based on…
semiColon
  • 205
  • 6
  • 24
0
votes
1 answer

Spring Boot properties to change the directory of frontend resources

I am having a Spring Boot application and I would like to change the directory of my frontend. Instead of having the frontend resources inside the directory resources/static, I would like to move them to another directory out of the resources. What…
luthien
  • 1,285
  • 3
  • 15
  • 26
0
votes
1 answer

How to bind datasource property from env variables Spring boot

How to bind datasource property from env variables Spring boot I have some property spring.datasource.url= spring.datasource.username= spring.datasource.password= and i need to fill db connection parameters from env variable java -jar…
0
votes
1 answer

Environment variables with wildfly not working

In my application launching I get some variables from env variables in app properties. It works fine with spring boot container. But when I launch the application with wildfly 10 System.getenv always return null. I set my env variables in run…
0
votes
0 answers

Prevent to create Spring batch meta-data table inside mysql DB

I am using spring Batch 3.0.7. Is is possible to prevent the creation of meta data table in DB. In my application by default bellow org/springframework/batch/core/schema-mysql.sql file code is exacting by Spring Batch. How I can prevent to execute…
sunil
  • 41
  • 3
  • 11
0
votes
1 answer

Use application properties from additonal file beside application.properties

I am not talking about profiles feature in application.properties. I have local.properties file which is loaded to ZooKeeperPropertySource and I want properties which are there, to be treated like the ones set in application.properties and still be…
ctomek
  • 1,696
  • 16
  • 35
0
votes
1 answer

Why spring boot scanBasePackages conflict with spring.jackson.date-format

I config the json date format in application.properties with annotation //in application.properties spring.jackson.date-format=yyyy-MM-dd @SpringBootApplication(scanBasePackages = (arrayOf("com.khidi"))) the json date format not working,but I…
tedeum
  • 185
  • 3
  • 14
0
votes
3 answers

How to change external application.properties file name?

I am using spring boot and deploying it as a war in standalone tomcat.The below is my application class. public class APIApplication extends SpringBootServletInitializer { public static void main(String[] args) { …
Ricky
  • 2,662
  • 5
  • 25
  • 57
0
votes
0 answers

Java JMS/MQ not Connecting When Switching Wiring from XML to .properties

I had a working Spring Boot application which uses MQQueueConnectionFactory to initialize a connection to an MQ server. In my applicationContext.xml I wired a custom configuration class equivalent to this:
Mark Nenadov
  • 6,421
  • 5
  • 24
  • 32
0
votes
2 answers

How to configure Spring Boot Application to run on a specific database when launching

I have a Spring MVC Application developed with Spring Boot. This is application is just for learning purposes, by the way. By default, the app launches and uses a MySQL database. For unit and integration testing, I use an in-memory H2 database and…
GianMS
  • 923
  • 2
  • 13
  • 25
0
votes
0 answers

Maven keeps overwriting my spring boot application.properties file?

I am using the open source messenger4j project to create a spring boog based Facebook bot: https://github.com/messenger4j/messenger4j-spring-boot-quickstart-template I am running on Ubuntu 12.x and using Maven 3.5.0. I need to use nano to edit the…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227