程序包 boot
类 SpringBootApplication
java.lang.Object
boot.SpringBootApplication
SpringBootApplication
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.boot.web.servlet.ServletContextInitializer
org.springframework.boot.web.servlet.ServletContextInitializer
org.springframework.boot.web.servlet.ServletContextInitializer
static void
在idea中通过main方法启动需要将工作目录改为 publiccms 模块所在的路径,否则静态资源不能加载org.springframework.boot.web.servlet.ServletContextInitializer
org.springframework.boot.web.servlet.server.ServletWebServerFactory
org.springframework.boot.web.servlet.ServletContextInitializer
-
构造器详细资料
-
SpringBootApplication
public SpringBootApplication()
-
-
方法详细资料
-
main
在idea中通过main方法启动需要将工作目录改为 publiccms 模块所在的路径,否则静态资源不能加载
ideaのmainメソッドから始めるには、作業ディレクトリをpubliccmsモジュールが配置されているパスに変更する必要があり、そうしないと静的リソースをロードできません
To start through the main method in idea, you need to change the working directory to the path where the publiccms module is located, otherwise the static resources cannot be loaded
https://www.publiccms.com/question/2018/02-13/376.html
- 参数:
args
-
-
servletContainer
@Bean public org.springframework.boot.web.servlet.server.ServletWebServerFactory servletContainer()- 返回:
- servlet container
-
webInitializer
@Bean public org.springframework.boot.web.servlet.ServletContextInitializer webInitializer()- 返回:
- web servlet initializer
-
adminInitializer
@Bean public org.springframework.boot.web.servlet.ServletContextInitializer adminInitializer()- 返回:
- admin servlet initializer
-
apiInitializer
@Bean public org.springframework.boot.web.servlet.ServletContextInitializer apiInitializer()- 返回:
- api servlet initializer
-
installationInitializer
@Bean public org.springframework.boot.web.servlet.ServletContextInitializer installationInitializer()- 返回:
- install servlet initializer
-
resourceInitializer
@Bean public org.springframework.boot.web.servlet.ServletContextInitializer resourceInitializer()- 返回:
- resource servlet initializer
-