Authored by liangyi.chen@yoho.cn

TestFile

... ... @@ -4,15 +4,21 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication(scanBasePackages = "com.yoho.datasync")
@EnableJpaRepositories(basePackages = "com.yoho.datasync.consumer.dal.repository")
@EntityScan(basePackages = "com.yoho.datasync.core.base.model")
@RestController
public class YohoDatasyncConsumerApplication {
public static void main(String[] args) {
SpringApplication.run(YohoDatasyncConsumerApplication.class, args);
}
@RequestMapping("/test")
public String test(){
return "200";
}
}
... ...