类 WebConfigurer
- java.lang.Object
-
- org.springmad.config.WebConfigurer
-
- 所有已实现的接口:
org.springframework.boot.web.servlet.ServletContextInitializer
@Configuration public class WebConfigurer extends Object implements org.springframework.boot.web.servlet.ServletContextInitializer
Configuration of web application with Servlet 3.0 APIs.
-
-
构造器概要
构造器 构造器 说明 WebConfigurer(org.springframework.core.env.Environment env, io.github.jhipster.config.JHipsterProperties jHipsterProperties)
-
-
-
方法详细资料
-
onStartup
public void onStartup(javax.servlet.ServletContext servletContext) throws javax.servlet.ServletException- 指定者:
onStartup在接口中org.springframework.boot.web.servlet.ServletContextInitializer- 抛出:
javax.servlet.ServletException
-
corsFilter
@Bean public org.springframework.web.filter.CorsFilter corsFilter()
-
-