【发布时间】:2020-12-01 12:42:21
【问题描述】:
我试图在 Springboot 中调用基于 oracle 的存储过程。它按预期工作,但我在扫描 SonarQube 时收到警告。请提出处理方法。
Program.java:
public class DataExecutor {
@Autowired
DataSource dataSource;
@Autowired
JdbcTemplate jdbcTemplate;
public int executeprocedure(){
jdbcTemplate = new JdbcTemplate(dataSource);
SimpleJdbcCall simpleJdbcCall = new SimpleJdbcCall(jdbcTemplate).withSchemaName("FSW")
.withProcedureName("SP");
..................... Rest of the code
}
【问题讨论】:
标签: java spring-boot sonarqube singleton