-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
Using IntelliJ, the Autowired annotation for the jdbcTemplate variable is labeled as an issue.
...
public static void main(String[] args) {
SpringApplication.run(SpringjdbcApplication.class, args);
}
@Autowired //Field injection is not recommended
JdbcTemplate jdbcTemplate;
@Override
public void run(String... args) throws Exception {
log.info("Creating tables");
...
It says that "Field injection is not recommended". How to solve this?
PrometheRus