在springboot中保护数据库

时间:2019-02-11 04:53:15

标签: java database postgresql spring-boot

我在 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是否为保护数据库提供了任何东西?

0 个答案:

没有答案