@EnableAutoConfiguration(excludeName="org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration")
@EnableCaching
@EnableConfigurationProperties
@ComponentScan(basePackages={"org.openhubframework.openhub.common","org.openhubframework.openhub.core","org.openhubframework.openhub.modules","org.openhubframework.openhub.config"},excludeFilters={,})
@Configuration
@EnableSpringConfigured
@EnableAspectJAutoProxy
@PropertySource(value="classpath:/extensions.cfg")
public class OpenHubApplication
extends org.springframework.boot.web.support.SpringBootServletInitializer
implements org.springframework.web.WebApplicationInitializer
web child
context.WebConfigurer
,
GlobalSecurityConfig
,
WebSecurityConfig
,
CamelRoutesConfig
,
CamelConfig
,
WebServiceConfig
,
JpaConfig
Constructor and Description |
---|
OpenHubApplication() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.boot.builder.SpringApplicationBuilder |
createSpringApplicationBuilder() |
org.springframework.boot.web.servlet.FilterRegistrationBean |
disableSpringBootErrorFilter(org.springframework.boot.web.support.ErrorPageFilter filter) |
org.springframework.boot.web.support.ErrorPageFilter |
errorPageFilter() |
javax.servlet.Filter |
logContextFilter()
Sets up filter for adding context information to logging.
|
static void |
main(String[] args)
Main method used to start OpenHub server in standalone mode.
|
configure, createRootApplicationContext, onStartup, run, setRegisterErrorPageFilter
@Bean public javax.servlet.Filter logContextFilter()
@Bean public org.springframework.boot.web.support.ErrorPageFilter errorPageFilter()
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean disableSpringBootErrorFilter(org.springframework.boot.web.support.ErrorPageFilter filter)
protected org.springframework.boot.builder.SpringApplicationBuilder createSpringApplicationBuilder()
createSpringApplicationBuilder
in class org.springframework.boot.web.support.SpringBootServletInitializer
public static void main(String[] args) throws Exception
args
- as arguments used to override configurationException
- if OpenHub was not start correctlycreateOpenHubApplicationBuilder()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.