java - 在springboot中保护数据库
问题描述
我在application.properties中有数据库配置,如下所示:
spring.database.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/deebee
spring.datasource.username=postgres
spring.datasource.password=shivendra
不知何故,直接写用户名和密码对我来说似乎是一个安全问题。像我现在这样的数据库配置可以吗?
另外,我没有为我的应用程序中的数据库安全做任何事情,spring boot 是否为保护数据库提供了任何东西?
解决方案
推荐阅读
- javascript - Google Apps 脚本日期转换
- javascript - MongooseError:操作 `muted-members.insertOne()` 缓冲在 10000 毫秒后超时
- kentico - Kentico - 禁用页面级附件
- python - tensorflow- how to keep column label name when one-hot-encoding?
- java - Jackson - JsonTypeInfo,可以处理骆驼和蛇情况的属性
- c# - Devexpress 未将编辑表单模式更改保存到数据库我如何拦截
- selenium - Selenium 上的 Xpath 问题?
- powershell - Powershell 解决方案:运行旧版 Powershell 不支持的模块
- excel - 在 Excel 中使用文本函数
- bash - 从数字中删除前导 0 会导致值发生变化