Skip to content

Commit 152ee24

Browse files
author
Eric Harmeling
committed
Simplified annotation
1 parent e261b00 commit 152ee24

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

roach-data-jdbc/src/main/java/io/roach/data/jdbc/JdbcApplication.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@
1414
import org.slf4j.LoggerFactory;
1515
import org.springframework.boot.CommandLineRunner;
1616
import org.springframework.boot.WebApplicationType;
17-
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
17+
import org.springframework.boot.autoconfigure.SpringBootApplication;
1818
import org.springframework.boot.builder.SpringApplicationBuilder;
19-
import org.springframework.context.annotation.ComponentScan;
20-
import org.springframework.context.annotation.Configuration;
2119
import org.springframework.context.annotation.EnableAspectJAutoProxy;
2220
import org.springframework.core.Ordered;
2321
import org.springframework.data.jdbc.repository.config.EnableJdbcRepositories;
24-
import org.springframework.data.web.config.EnableSpringDataWebSupport;
2522
import org.springframework.hateoas.Link;
2623
import org.springframework.hateoas.config.EnableHypermediaSupport;
2724
import org.springframework.http.HttpEntity;
@@ -33,14 +30,11 @@
3330
/**
3431
* Spring boot server application using spring-data-jdbc for data access.
3532
*/
36-
@EnableAutoConfiguration
3733
@EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL)
3834
@EnableJdbcRepositories
3935
@EnableAspectJAutoProxy(proxyTargetClass = true)
40-
@EnableSpringDataWebSupport
4136
@EnableTransactionManagement(order = Ordered.LOWEST_PRECEDENCE - 1) // Bump up one level to enable extra advisors
42-
@Configuration
43-
@ComponentScan
37+
@SpringBootApplication
4438
public class JdbcApplication implements CommandLineRunner {
4539
protected static final Logger logger = LoggerFactory.getLogger(JdbcApplication.class);
4640

0 commit comments

Comments
 (0)