当我试图为我的Java项目创建安全的生产环境时,我应该将数据库用户名、密码和url保存在哪里,为了安全起见,我现在正在使用应用程序属性来保存DB凭据,请建议一些良好和安全的方法来保存DB凭据。
application.properties
# This should be used only for credentials and other local-only config.
spring.datasource.url = jdbc:postgresql://localhost/database
spring.datasource.username = root
spring.dataso
我正在尝试将我的Spring项目连接到AWS中的ElasticCache Redis。但是,我得到了以下错误:
Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
application.properties
spring.cache.type=redis
spring.redis.host=*****.*****.****.****.cache.amazon