mirror of https://gitee.com/stylefeng/guns
【7.6.0】更新启动类名称
parent
b582a37cfc
commit
0066a67808
|
@ -14,11 +14,11 @@ import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@SpringBootApplication(scanBasePackages = {"cn.stylefeng"}, exclude = {FlywayAutoConfiguration.class, GunsDataSourceAutoConfiguration.class})
|
@SpringBootApplication(scanBasePackages = {"cn.stylefeng"}, exclude = {FlywayAutoConfiguration.class, GunsDataSourceAutoConfiguration.class})
|
||||||
public class GunsApplication {
|
public class ProjectStartApplication {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(GunsApplication.class, args);
|
SpringApplication.run(ProjectStartApplication.class, args);
|
||||||
log.info(GunsApplication.class.getSimpleName() + " is success!");
|
log.info(ProjectStartApplication.class.getSimpleName() + " is success!");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -9,11 +9,11 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
|
||||||
* @author fengshuonan
|
* @author fengshuonan
|
||||||
* @since 2020/12/1 17:50
|
* @since 2020/12/1 17:50
|
||||||
*/
|
*/
|
||||||
public class GunsServletInitializer extends SpringBootServletInitializer {
|
public class ProjectStartServletInitializer extends SpringBootServletInitializer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
||||||
return builder.sources(GunsApplication.class);
|
return builder.sources(ProjectStartApplication.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package cn.stylefeng.guns.core.consts;
|
package cn.stylefeng.guns.core.consts;
|
||||||
|
|
||||||
import cn.stylefeng.guns.GunsApplication;
|
import cn.stylefeng.guns.ProjectStartApplication;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 项目的常量
|
* 项目的常量
|
||||||
|
@ -23,6 +23,6 @@ public interface ProjectConstants {
|
||||||
/**
|
/**
|
||||||
* 项目的包名,例如cn.stylefeng.guns
|
* 项目的包名,例如cn.stylefeng.guns
|
||||||
*/
|
*/
|
||||||
String ROOT_PACKAGE_NAME = GunsApplication.class.getPackage().getName();
|
String ROOT_PACKAGE_NAME = ProjectStartApplication.class.getPackage().getName();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue