diff --git a/proxy/src/main/java/io/mpms/JpomAgentApplication.java b/proxy/src/main/java/io/mpms/JpomAgentApplication.java new file mode 100644 index 0000000000000000000000000000000000000000..9f4c3817c30caefbcdb2ea6df7a6b595fec1b184 --- /dev/null +++ b/proxy/src/main/java/io/mpms/JpomAgentApplication.java @@ -0,0 +1,33 @@ +package io.mpms; + +import cn.jiangzeyin.common.EnableCommonBoot; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.web.servlet.ServletComponentScan; +import org.springframework.scheduling.annotation.EnableScheduling; + +/** + * jpom 启动类 + * + */ +@SpringBootApplication +@ServletComponentScan +@EnableCommonBoot +//开启定时任务(也可以放在启动类上) +@EnableScheduling +public class JpomAgentApplication { + + /** + * 启动执行 + * + * @param args 参数 + * @throws Exception 异常 + */ + public static void main(String[] args) throws Exception { + JpomApplication jpomApplication = new JpomApplication(Type.Agent, JpomAgentApplication.class, args); + jpomApplication + // 拦截器 + .addInterceptor(AuthorizeInterceptor.class) + .run(args); + } + +}