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

Spring Boot Database - Running Application with different DB User / Flyway

i have currently an issue with my application. It is a Spring Boot Application where i am creating Database Tables via Flyway. For Flyway i created an DB User which has the sufficent rights to create DB Tables. For the Application i would like to…
0
votes
2 answers

Spring.mvc.servlet.path vs Server.servlet.context-path

I have Spring Boot application in which I use "spring.mvc.servlet.path=/api/v1" to acces my endpoints. For example when I test my "users" endpoint in postman i Have: "http://localhost:8081/api/v1/users". And it works. The problem is when I integrate…
gizetoN
  • 15
  • 3
  • 10
0
votes
0 answers

SpringBoot app not picking up property from properties file

I have a simple SpringBoot app setup up with Spring initializer and has the regular folder structure . I have a application.properties file in src/main/resources with one entry in it app.version=1.0.0 I have a simple class to pick up the property…
OneXer
  • 303
  • 9
  • 20
0
votes
2 answers

spring boot 2: load application.properties manually

is it possible to access application.properties values while creating datasource in SpringApplication.run? I have tried to inject value with @Value but when i need the values, the bean with @ConfigurationProperties is not created yet.
0
votes
1 answer

How to get current/active profile in Spring during "maven install"?

I'm trying to get active profile from application.properties file during "maven install". I tried to; @Value("${spring.profiles.active}") String activeProfiles; however, it returns null. Here is the related part from the…
0
votes
1 answer

Spring Boot logback-spring.xml creates a log file under path /var/log even if custom log path is defined in the xml and application.properties files

I prepared a custom RollingFileAppender configuration in the logback-spring.xml file and application.properties files. The log file soduncu.log created under path /var/app/sefa/logs. This is expected behavior for the configuration but there is an…
0
votes
0 answers

Can't bind application.properties file in Spring boot application

I am trying to bind the values in my application.properties file in my Springboot application to my external config class. I am using the @Value annotation to mark the variable I want passed in from application.properties file and my…
Edward Muldrew
  • 253
  • 1
  • 6
  • 20
0
votes
1 answer

spring - why define variable values of properties in application.properties

I am trying to understand something about the following application.properties syntax in spring some-api: url: ${variable.url:http://localhost:8080} I know that to get the value of the above we use (for example) @Value("${some-api.url}") private…
Ranked Bronze
  • 71
  • 1
  • 9
0
votes
1 answer

How to do in spring boot that connects to a scheme in a database and not to the public

I have a Spring Boot api that connects to a database in postgresql,In the database I have two schemes, one of my own and the public. when inserting the table that I have in my scheme is created in the public and inserted there. I have tried to put…
0
votes
1 answer

Bazel to read spring boot application.properties configurations

I have a very simple Spring Boot application that uses Maven and I'm trying to migrate it to use Bazel. I'm following the "Migrating from Maven to Bazel" tutorial and I've now the Spring Boot application running using Bazel. The problem is that my…
Nunovsky
  • 365
  • 4
  • 18
0
votes
1 answer

Failed to create/setup connection: ORA-01017 because setenv.sh environment variable has line break

I'm getting this error in my Spring Boot Data JPA application: java.sql.SQLException: ORA-01017: invalid username/password; logon denied at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) ~[ojdbc6-11.2.0.jar:12.1.0.1.0] at…
0
votes
0 answers

Spring Boot returning null when a url is defined as value

I am defining key values in application properties. It is reading all other values correctly but when I give a url as value it returns null. Any suggestion why. I tried single quote, double quote and @"" but everytime it giving null for base url a…
Karan
  • 752
  • 2
  • 13
  • 34
0
votes
1 answer

How to load external properties file and override springboot application.properties (without runtime args)?

I want to load properties file that is outside the springboot app and override the sprignboot matched application properties on the run time environment Programmatically not through server context/ runtime args? I have found a way to implement this…
Bitla
  • 71
  • 1
  • 5
0
votes
1 answer

Reading from application.properties and replace dynamic parameters

How can my Spring Boot application read application.properties values with a parameter(s) like it's possible for ResourceBundles using MessageFormat? For instance, if I have in…
du-it
  • 2,561
  • 8
  • 42
  • 80
0
votes
1 answer

Synchronize application.properties when deploying in kubernetes

I would like to know what is the best practice of synchronizing our application.properties in our deployment in kubernetes with our git repository. Every time there is a change in application.properties in our git repo, we need to manually update…
aeycee
  • 167
  • 2
  • 2
  • 14