The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Himai Minh wrote:Hello Jf,
In your IDE , under your project, do you have resource folder? If so, create application.properties file in resource folder.
Jf Okeeffe wrote:
Himai Minh wrote:Hello Jf,
In your IDE , under your project, do you have resource folder? If so, create application.properties file in resource folder.
Yes, I could create the application.properties file.
But the point is that I'd like to understand how the application was actually built because seems it doesn't have that file and it is up and running in a prod server.
So my goal is to reproduce the way it works now.
I don't have access to the prod server to see if the file is there though.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Jf Okeeffe wrote:Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"
....
So, do you know of any other place that this value could be or is the application.properties file really missing and needs to be created?
Ron McLeod wrote:
Jf Okeeffe wrote:Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"
....
So, do you know of any other place that this value could be or is the application.properties file really missing and needs to be created?
I haven't worked with SpringBoot before, but I assume that it could also pick-up properties like this from environment variables. Is SPRING_DATASOURCE_URL defined anywhere on the target environment?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:Wrong case, wrong punctuation.
Ron McLeod wrote:
Tim Holloway wrote:Wrong case, wrong punctuation.
Replacement of special characters with underscores is required for environments which don't allow periods and other characters in env variables names (like the various Linux shells). Uppercasing of names also common.
From the document that you shared:
7.2.3. External Application Properties: If you use environment variables rather than system properties, most operating systems disallow period-separated key names, but you can use underscores instead (for example, SPRING_CONFIG_NAME instead of spring.config.name).
Tim Holloway wrote:You might want to search the project for "jdbc" and see if you can find more info in the search results.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:Production database connection information shouldn't be something seen outside of Production.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:If, as it should be, the production connection is already set up and operational, then when you submit the updated app to production, it should hook in automatically.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Don't play dumb with me! But you can try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|