From Checkmarx report:
Application contains Hardcoded connection details. This can expose database password.
I'm using jasypt-spring-boot for password encryption. But in Checkmarx, it marks it as medium vulnerability.
Dependency used:
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot</artifactId>
<version>2.0.0</version>
</dependency>
In PropertFile:
projectname.password=ENC(encrypted password)
@Value("${projectname.password}")
private String dBpassword;
and using the above dBpassword to connect to the database.