|
@ -8,6 +8,7 @@ |
|
|
|
|
|
|
|
|
package com.epmet.openapi.scan; |
|
|
package com.epmet.openapi.scan; |
|
|
|
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.boot.SpringApplication; |
|
|
import org.springframework.boot.SpringApplication; |
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
import org.springframework.boot.web.servlet.ServletComponentScan; |
|
|
import org.springframework.boot.web.servlet.ServletComponentScan; |
|
@ -23,9 +24,11 @@ import org.springframework.context.annotation.ComponentScan; |
|
|
@SpringBootApplication |
|
|
@SpringBootApplication |
|
|
@ComponentScan(basePackages = "com.epmet") |
|
|
@ComponentScan(basePackages = "com.epmet") |
|
|
@ServletComponentScan(basePackages = "com.epmet") |
|
|
@ServletComponentScan(basePackages = "com.epmet") |
|
|
|
|
|
@Slf4j |
|
|
public class ScanApplication { |
|
|
public class ScanApplication { |
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|
|
|
|
log.info("openapi启动了:"); |
|
|
SpringApplication.run(ScanApplication.class, args); |
|
|
SpringApplication.run(ScanApplication.class, args); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|