|
1 | 1 | package com.baeldung.jtademo; |
2 | 2 |
|
3 | | -import com.baeldung.jtademo.services.TellerService; |
4 | | -import org.hsqldb.jdbc.JDBCDataSourceFactory; |
5 | 3 | import org.hsqldb.jdbc.pool.JDBCXADataSource; |
6 | | -import org.springframework.beans.factory.annotation.Autowired; |
7 | 4 | import org.springframework.beans.factory.annotation.Qualifier; |
8 | | -import org.springframework.boot.CommandLineRunner; |
9 | | -import org.springframework.boot.SpringApplication; |
10 | 5 | import org.springframework.boot.autoconfigure.EnableAutoConfiguration; |
11 | 6 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
12 | 7 | import org.springframework.boot.jta.bitronix.BitronixXADataSourceWrapper; |
13 | | -import org.springframework.boot.jta.bitronix.PoolingDataSourceBean; |
14 | 8 | import org.springframework.context.annotation.Bean; |
15 | | -import org.springframework.core.io.DefaultResourceLoader; |
16 | | -import org.springframework.core.io.Resource; |
| 9 | +import org.springframework.context.annotation.Configuration; |
17 | 10 | import org.springframework.jdbc.core.JdbcTemplate; |
18 | | -import org.springframework.jdbc.core.ResultSetExtractor; |
19 | | -import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; |
20 | | -import org.springframework.jdbc.datasource.init.ScriptUtils; |
21 | 11 | import org.springframework.transaction.annotation.EnableTransactionManagement; |
22 | | -import org.springframework.util.Assert; |
23 | 12 |
|
24 | 13 | import javax.sql.DataSource; |
25 | | -import java.math.BigDecimal; |
26 | | -import java.sql.Connection; |
27 | | -import java.sql.SQLException; |
28 | 14 |
|
29 | | -@EnableAutoConfiguration |
| 15 | +@SpringBootApplication() |
30 | 16 | @EnableTransactionManagement |
31 | 17 | public class JtaDemoApplication { |
32 | 18 |
|
|
0 commit comments