我开发了一些Spring Boot项目,并通过在application.properties中使用spring.datasource.username和spring.datasource.password启动了数据库连接。>
[我尝试使用jasypt加密这些属性,但是我认为这不是一个好方法,因为我仍然需要存储未在application.properties中加密的jasypt.encryptor.password。
我很难找到解决方案,因为来自Internet的结果只提到了jasypt。
有没有更好的方法来保护用户名并通过Spring Boot?
我已经开发了一些Spring Boot项目,并且通过在我尝试使用的application.properties中使用spring.datasource.username和spring.datasource.password来启动数据库连接。
属性文件