We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when using hoplite-hikaricp properties are not marked as "used".
for example
application.conf
database { jdbcUrl = "jdbc:postgresql://localhost:5342/firstDatabase" username = "firstDbConnectionUserName" password = "firstDbConnectionPassword" driverClassName = "org.postgresql.Driver" maximumPoolSize = 10 }
and
data class MyConfig(val database: HikariDataSource) val myConfig = ConfigLoader { addResourceOrFileSource("/application.conf", optional = false) withReport() }.loadConfigOrThrow<MyConfig>()
then you can run this to test the loading of the configuration.
docker run -d --name first-database -p 127.0.0.1:5342:5432 -e POSTGRES_PASSWORD=firstDbConnectionPassword -e POSTGRES_USER=firstDbConnectionUserName -e POSTGRES_DB=firstDatabase postgres:9.6.12
result:
Unused keys: 5 +--------------------------+-----------------------------+----------+ | Key | Source | Value | +--------------------------+-----------------------------+----------+ | database.driverClassName | classpath:/application.conf | org***** | | database.jdbcUrl | classpath:/application.conf | jdb***** | | database.maximumPoolSize | classpath:/application.conf | 10 | | database.password | classpath:/application.conf | fir***** | | database.username | classpath:/application.conf | fir***** | +--------------------------+-----------------------------+----------+
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when using hoplite-hikaricp properties are not marked as "used".
for example
application.conf
and
then you can run this to test the loading of the configuration.
docker run -d --name first-database -p 127.0.0.1:5342:5432 -e POSTGRES_PASSWORD=firstDbConnectionPassword -e POSTGRES_USER=firstDbConnectionUserName -e POSTGRES_DB=firstDatabase postgres:9.6.12
result:
Unused keys: 5
+--------------------------+-----------------------------+----------+
| Key | Source | Value |
+--------------------------+-----------------------------+----------+
| database.driverClassName | classpath:/application.conf | org***** |
| database.jdbcUrl | classpath:/application.conf | jdb***** |
| database.maximumPoolSize | classpath:/application.conf | 10 |
| database.password | classpath:/application.conf | fir***** |
| database.username | classpath:/application.conf | fir***** |
+--------------------------+-----------------------------+----------+
The text was updated successfully, but these errors were encountered: