Polish
This commit is contained in:
@@ -6,13 +6,12 @@ package org.test
|
||||
@EnableTransactionManagement
|
||||
class Example implements CommandLineRunner {
|
||||
|
||||
@Autowired
|
||||
JdbcTemplate jdbcTemplate
|
||||
|
||||
@Transactional
|
||||
void run(String... args) {
|
||||
println "Foo count=" + jdbcTemplate.queryForObject("SELECT COUNT(*) from FOO", Integer)
|
||||
}
|
||||
@Autowired
|
||||
JdbcTemplate jdbcTemplate
|
||||
|
||||
@Transactional
|
||||
void run(String... args) {
|
||||
println "Foo count=" + jdbcTemplate.queryForObject("SELECT COUNT(*) from FOO", Integer)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user