membersound
membersound
> If anyone's still interested in using `.env` as another properties file, for me it works by adding > > ```ini > # Development properties (also used for docker-compose) >...
I forgot that multiple profiles can be added to that property (as I always only use one profile at once). But well, in general the setup might be as follows:...
If so, where do you put secrets for test/production then (assuming a locally build app)? At least they cannot be written into the `application-*.properties`, as those are usually committed.
> > > I would like to see the `.env` file be used to setup development environment. These custom variables will be referred in my local development profile. That would...
I can confirm the `spring.config.import: optional:` approach works fine both for local development and automated deployments, as follows: With `application.properties`: ``` spring.config.import=optional:classpath:.env[.properties] spring.datasource.password=${DATABASE_PASSWORD} ``` Now you can create an `.env`...
Same for me, would like to embed external `json`, but it's simply empty...
As a workaround, could you provide the "optimal" module configuration for spring with `jdeps` and `jlink`? For example: `--add-modules $(jdeps --ignore-missing-deps --print-module-deps application.jar),java.xml,java.desktop,java.instrument,java.management,java.naming,java.prefs,java.rmi,java.scripting,java.sql,jdk.httpserver,jdk.jfr,jdk.unsupported,java.security.jgss` Am I missing something, or is anything...
> It depends which features you need at runtime. E.g. see my examples above [#26884 (comment)](https://github.com/spring-projects/spring-framework/issues/26884#issuecomment-928948327) which both have fewer modules than yours. Would the docker build fail if a...
I can report back missing modules result in **runtime errors**, which is really bad. I discovered it when using a `DataSourceUtils.getConnection(ds);` call. As I did not catch exceptions at this...
Maybe in context of this issue, it might be possible for Spring to validate the included `jlink` modules, and alert if one is missing, regarding to the used classes? I...