Paul c575ba8d6f Issue 6427 fix incompatible dependencies (#6428)
* fix 6427 - update Spring Boot to 2.1.3, update Spring Cloud to Greenwich.RELEASE

* cleanup: specify Thymeleaf namespace, `@ComponentScan` is redundant near `@SpringBootApplication`
2019-02-27 09:54:22 -08:00

20 lines
672 B
Java

package com.baeldung;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@ServletComponentScan
@SpringBootApplication(scanBasePackages = "com.baeldung")
@EnableJpaRepositories("com.baeldung.persistence.repo")
@EntityScan("com.baeldung.persistence.model")
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}