diff --git a/jta/pom.xml b/jta/pom.xml
index 3eb0e294d5..9a58c57d22 100644
--- a/jta/pom.xml
+++ b/jta/pom.xml
@@ -49,12 +49,40 @@
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
+
+
+ autoconfiguration
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ integration-test
+
+ test
+
+
+
+ **/*LiveTest.java
+ **/*IntegrationTest.java
+ **/*IntTest.java
+
+
+ **/AutoconfigurationTest.java
+
+
+
+
+
+
+ json
+
+
+
+
+
+
+
diff --git a/jta/src/main/java/com/baeldung/jtademo/JtaDemoApplication.java b/jta/src/main/java/com/baeldung/jtademo/JtaDemoApplication.java
index 55258e3f23..037958c38a 100644
--- a/jta/src/main/java/com/baeldung/jtademo/JtaDemoApplication.java
+++ b/jta/src/main/java/com/baeldung/jtademo/JtaDemoApplication.java
@@ -2,16 +2,21 @@ package com.baeldung.jtademo;
import org.hsqldb.jdbc.pool.JDBCXADataSource;
import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.jta.bitronix.BitronixXADataSourceWrapper;
import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import javax.sql.DataSource;
-@SpringBootApplication()
+@EnableAutoConfiguration
@EnableTransactionManagement
+@Configuration
+@ComponentScan
public class JtaDemoApplication {
@Bean("dataSourceAccount")