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
3
votes
2 answers

Can Key value pairs in application.properties be considered as environmental variables?

New to spring boot. While exploring spring boot env variables, came to know that, env variables can be accessed by ${KeyName} from code. Got a question like, Case 1: In @Configuration files, we are accessing keys in application.properties using…
3
votes
0 answers

Configure application.properties in spring boot for public url in keycloak

I'm developing spring boot application (v 2.1.0) with keycloak to secure app (v 4.5.0). I already configured keycloak security in gradle and application.properties. However keycloak returns unauthorized (401 Error) even for urls which are not added…
3
votes
1 answer

Set/Change list properties in application.properties in Akka

I want to use slf4j for logging, based on logging doc. These config should be changed in application.conf: akka { loggers = ["akka.event.slf4j.Slf4jLogger"] logging-filter = "akka.event.slf4j.Slf4jLoggingFilter" } I'm using…
Arya
  • 2,809
  • 5
  • 34
  • 56
3
votes
2 answers

Spring boot: Oracle RAC DB connection configuration

In Spring boot application, Need to configure Oracle RAC DB URL. Can someone explain how to configure the Oracle RAC URL in…
3
votes
0 answers

Setting a property to use a classpath in application.properties

I'm trying to set a property, as a path to a file in my resources folder, in my application.yml But Java treats the classpath prefix as part of the string. I've tried multiple ways of getting this path into my program (obviously not all at…
rnmalone
  • 1,020
  • 13
  • 25
3
votes
2 answers

Spring Boot management.trace.include configuration by example

Spring Boot here. What are the possible values that one can specify for the management.trace.include property in application.properties, what are this property's default values, and where is all of this documented (pro tip: it's not!)?
smeeb
  • 27,777
  • 57
  • 250
  • 447
3
votes
2 answers

How to pass heroku config var to spring boot's application.properties?

I'm trying to pass custom heroku config variable into application.properties but no value is passed. My application.properties entry: spring.mail.username=${SPRING_MAIL_SENDER_USERNAME} Then I inject this value into String…
Jakubeeee
  • 666
  • 6
  • 13
3
votes
1 answer

How to read from application.properties and set as Job Parameter in Spring Batch

I want to read from my application.properties , the input and output paths for my Spring Batch application, and set them to the jobParametersBuilder, so I can access them throughout the job execution (to assign them to readers and writers). I was…
3
votes
0 answers

Spring cloud composite bootstrap.yml

Is there any way how to "build" bootstrap.yml from multiple yaml files? Here is my scenario, I have a bunch of micro-services and every service had the same bootstrap.yml properties expect spring.application.name. I would like to split my…
2
votes
2 answers

How to override an interface fault tolerance annotation in application.properties

I am trying to override an interface Timeout Fault tolerance annotation in application.properties. However I am not sure if it is possible to override annotation parameters via configuration file using property…
2
votes
2 answers

Kubernetes autogenerated environment variables set wrong?

During pod startup Kubernetes is creating some environment variables based on services i created (via downward API?). Problem is that one of them, MY_APPLICATION_PORT, seems to be initialized incorrectly, it looks…
2
votes
1 answer

Quarkus Kubernetes operator: how to set environment variables in application container (not operator container)?

The Keycloak operator uses Quarkus: https://github.com/keycloak/keycloak/tree/main/operator In application.properties (https://github.com/keycloak/keycloak/blob/main/operator/src/main/resources/application.properties) we can set environment…
2
votes
1 answer

Spring boot must to create a file before the application.properties are load

I'm working currently on a Spring boot project, and we have an application.properties file that defines a path where we have 2 jks files. (the original file has more key/value pairs, but I'm focusing in the main problem with these two…
2
votes
0 answers

SpringBoot app not use application.properties from a personal library

I create : one library using Spring (common-spring) one springboot project which use this library. In my library common-spring, I have create multiple HealthIndicator (Actuator). In my HealhIndicator I define the…
2
votes
1 answer

I can't get value from application.properties in spring boot in any way

I've tried using ways. @Value("${app.host}) @AutoWired Environment environment I can get value from the application.properties in other files, but when I try to get it from thread task where I've implemented Callable Interface, I'm getting value…