Showing
1 changed file
with
7 additions
and
1 deletions
@@ -4,15 +4,21 @@ import org.springframework.boot.SpringApplication; | @@ -4,15 +4,21 @@ import org.springframework.boot.SpringApplication; | ||
4 | import org.springframework.boot.autoconfigure.SpringBootApplication; | 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
5 | import org.springframework.boot.autoconfigure.domain.EntityScan; | 5 | import org.springframework.boot.autoconfigure.domain.EntityScan; |
6 | import org.springframework.data.jpa.repository.config.EnableJpaRepositories; | 6 | import org.springframework.data.jpa.repository.config.EnableJpaRepositories; |
7 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
8 | +import org.springframework.web.bind.annotation.RestController; | ||
7 | 9 | ||
8 | @SpringBootApplication(scanBasePackages = "com.yoho.datasync") | 10 | @SpringBootApplication(scanBasePackages = "com.yoho.datasync") |
9 | @EnableJpaRepositories(basePackages = "com.yoho.datasync.consumer.dal.repository") | 11 | @EnableJpaRepositories(basePackages = "com.yoho.datasync.consumer.dal.repository") |
10 | @EntityScan(basePackages = "com.yoho.datasync.core.base.model") | 12 | @EntityScan(basePackages = "com.yoho.datasync.core.base.model") |
13 | +@RestController | ||
11 | public class YohoDatasyncConsumerApplication { | 14 | public class YohoDatasyncConsumerApplication { |
12 | 15 | ||
13 | public static void main(String[] args) { | 16 | public static void main(String[] args) { |
14 | SpringApplication.run(YohoDatasyncConsumerApplication.class, args); | 17 | SpringApplication.run(YohoDatasyncConsumerApplication.class, args); |
15 | } | 18 | } |
16 | 19 | ||
17 | - | 20 | + @RequestMapping("/test") |
21 | + public String test(){ | ||
22 | + return "200"; | ||
23 | + } | ||
18 | } | 24 | } |
-
Please register or login to post a comment