单体和微服务启动类,加注释说明

This commit is contained in:
zhangdaiscott 2020-12-02 20:11:24 +08:00
parent 82f208a133
commit 89ec913c9d
3 changed files with 9 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import org.jeecgframework.codegenerate.window.CodeWindow;
*/
public class JeecgOneGUI {
/** 详细使用手册: http://doc.jeecg.com/1275846 */
/** 详细使用手册: http://doc.jeecg.com/2043919 */
public static void main(String[] args) {
new CodeWindow().pack();
}

View File

@ -5,7 +5,6 @@ import org.apache.catalina.Context;
import org.apache.tomcat.util.scan.StandardJarScanner;
import org.jeecg.common.util.oConvertUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
@ -17,8 +16,12 @@ import org.springframework.core.env.Environment;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* 单体启动类采用此类启动项目为单体模式
*/
@Slf4j
@SpringBootApplication
//@EnableAutoConfiguration(exclude={org.activiti.spring.boot.SecurityAutoConfiguration.class})
public class JeecgSystemApplication extends SpringBootServletInitializer {
@Override

View File

@ -17,6 +17,10 @@ import org.springframework.core.env.Environment;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* 微服务启动类采用此类启动项目为微服务模式
* 注意 需要先在naocs里面创建配置文件参考文档 http://doc.jeecg.com/2043906
*/
@Slf4j
@SpringBootApplication
@EnableFeignClients(basePackages = {"org.jeecg"})