|
@@ -3,6 +3,7 @@ package com.phm;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
+import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
|
/**
|
|
|
* 启动程序
|
|
@@ -10,6 +11,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
* @author phm
|
|
|
*/
|
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
|
|
+@ComponentScan({ "com.phm.*", "com.test.*" })
|
|
|
public class PHMApplication {
|
|
|
public static void main(String[] args) {
|
|
|
// System.setProperty("spring.devtools.restart.enabled", "false");
|