File tree Expand file tree Collapse file tree
src/main/java/com/baeldung/jtademo Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 </dependency >
5050 </dependencies >
5151
52- <build >
53- <plugins >
54- <plugin >
55- <groupId >org.springframework.boot</groupId >
56- <artifactId >spring-boot-maven-plugin</artifactId >
57- </plugin >
58- </plugins >
59- </build >
52+ <profiles >
53+ <profile >
54+ <id >autoconfiguration</id >
55+ <build >
56+ <plugins >
57+ <plugin >
58+ <groupId >org.apache.maven.plugins</groupId >
59+ <artifactId >maven-surefire-plugin</artifactId >
60+ <executions >
61+ <execution >
62+ <phase >integration-test</phase >
63+ <goals >
64+ <goal >test</goal >
65+ </goals >
66+ <configuration >
67+ <excludes >
68+ <exclude >**/*LiveTest.java</exclude >
69+ <exclude >**/*IntegrationTest.java</exclude >
70+ <exclude >**/*IntTest.java</exclude >
71+ </excludes >
72+ <includes >
73+ <include >**/AutoconfigurationTest.java</include >
74+ </includes >
75+ </configuration >
76+ </execution >
77+ </executions >
78+ <configuration >
79+ <systemPropertyVariables >
80+ <test .mime>json</test .mime>
81+ </systemPropertyVariables >
82+ </configuration >
83+ </plugin >
84+ </plugins >
85+ </build >
86+ </profile >
87+ </profiles >
6088</project >
Original file line number Diff line number Diff line change 22
33import org .hsqldb .jdbc .pool .JDBCXADataSource ;
44import org .springframework .beans .factory .annotation .Qualifier ;
5+ import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
56import org .springframework .boot .autoconfigure .SpringBootApplication ;
67import org .springframework .boot .jta .bitronix .BitronixXADataSourceWrapper ;
78import org .springframework .context .annotation .Bean ;
9+ import org .springframework .context .annotation .ComponentScan ;
10+ import org .springframework .context .annotation .Configuration ;
811import org .springframework .jdbc .core .JdbcTemplate ;
912import org .springframework .transaction .annotation .EnableTransactionManagement ;
1013
1114import javax .sql .DataSource ;
1215
13- @ SpringBootApplication ()
16+ @ EnableAutoConfiguration
1417@ EnableTransactionManagement
18+ @ Configuration
19+ @ ComponentScan
1520public class JtaDemoApplication {
1621
1722 @ Bean ("dataSourceAccount" )
You can’t perform that action at this time.
0 commit comments