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

Spring Boot Unable to determine jdbc url from datasource

I'm building an application using spring boot and need to connect to Oracle DB via service, not sid. These are datasource…
Yakiv
  • 623
  • 2
  • 8
  • 19
7
votes
13 answers

Database "C:/data/sample" not found, and IFEXISTS=true, so we cant auto-create it - Error in Spring Boot

I have created a spring boot application to connect h2 database with it. While doing so, it throws an error showing Database not found. Please help me with the solution which I can implement and resolve the issue. I have added com.h2database…
7
votes
1 answer

When does spring use application-dev.properties vs application.properties

I've got several Spring Boot applications. All of them are maven projects and in all of them, I have separate configuration files for different environments, like application.properties, application-dev.properties, application-uat.properties. When I…
Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206
7
votes
1 answer

get properties from application.properties in spring boot

I want to get values using @Value annotation from application.properties in spring boot web project. I thought I can just use @Value annotation because i thought the variables in application.properties are just loaded on the fly. But when I write…
user5685187
7
votes
1 answer

What is the syntax of Spring Boot "application.properties" file?

I've seen different delimeters for properties : = Can't find reference about it.
Ekaterina
  • 1,642
  • 3
  • 19
  • 36
6
votes
2 answers

Convert YAML file to Application.properties

How can we convert YAML file to Application.properties? pay.payment: sandbox: Url: https://securegw-stage//processTransaction callbackUrl: http://localhost:8080/pgresponse details: CHANNEL_ID: '${pay.payment.sandbox.channelid}' …
Myjay1516
  • 197
  • 2
  • 4
  • 12
5
votes
4 answers

Comments in application.properties

I am very new in Spring world. I was using application.properties to set different port values. How can I comment some code in application.properties file?
5
votes
2 answers

Spring Boot App not picking up application.properties from dependent jar

I have two spring boot apps. The first is an API library that's pulled into the second (a web application) as a dependent jar. The first, is an API library that houses functions to create "cases" in an IBM solution. It's a standalone type jar that…
jeremy
  • 111
  • 2
  • 6
5
votes
1 answer

Spring Boot i18n in multi modules project

I have this multi modules project: Parent Pom | |----Main module (@SpringBootApplcation and application.properties) | |----Module I | |----Module II | |----Module III The main module depends on other modules and contains messages.properties and…
akuma8
  • 4,160
  • 5
  • 46
  • 82
5
votes
1 answer

Config-Server Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured

I am trying to get database configurations from a github repository that contains all application properties. The diagram below illustrates the structure of the service which i have: When i access my config server microservice everything works…
Erent
  • 571
  • 6
  • 15
  • 29
5
votes
5 answers

Spring Boot error in setting up SSL connection

I am trying to connect my Spring Boot application to a PostGresSql database. But every time I get error in setting up SSL connection error. My application.properties file is given…
John
  • 740
  • 5
  • 13
  • 36
5
votes
1 answer

Loading String[] from properties file into origins field of @CrossOrigin using property placeholder expression

In my spring boot application I have the following controller @RestController(value = "ProjectController") @CrossOrigin(origins = {"${app.api.settings.cross-origin.urls}"}) public class ProjectController { // some request mapping methods } The…
4
votes
1 answer

spring boot .env variables in application.properties

I have created .env file where I keep variables now I want them to be defined in my application.properties but this is not working. What do I need to add to get the variables. .env…
4
votes
1 answer

Spring Boot - application.yml, read value from a file

I have a property present in application.yml but the value of that property is present in another file. Over here username is present in file /etc/app/db_username database: url: localhost:14482 username: /etc/app/db_username password:…
gsm1986
  • 83
  • 1
  • 8
4
votes
1 answer

Do I need to escape special characters in application.properties?

I've special characters such as " (doublequotes), @, ~, !, %, &, }, ] in the datasource password field. When I run my springboot app and when it attempts to connect to the database I run into - com.microsoft.sqlserver.jdbc.SQLServerException: The…
linuxNoob
  • 600
  • 2
  • 14
  • 30
1
2
3
27 28