Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EnableAsync
- @RestController
- @EnableAutoConfiguration
- @SpringBootApplication
- @ComponentScan(basePackages="com.app.sensiple")
- public class SensipleApplication extends SpringBootServletInitializer {
- @Override
- protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
- return application.sources(SensipleApplication.class);
- }
- public static void main(String[] args) {
- SpringApplication.run(SensipleApplication.class, args);
- }
- @RequestMapping("/test")
- String test() {
- return "This is test and it's Working fine!";
- }
- <packaging>war</packaging>
- <!-- ... -->
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- <scope>provided</scope>
- </dependency>
- <!-- ... -->
- </dependencies>
Add Comment
Please, Sign In to add comment