@Component public class RedisServerConfiguration extends Object implements org.springframework.beans.factory.DisposableBean, org.springframework.context.EnvironmentAware, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
RedisServerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
int |
getPort()
通过环境属性(global.redis.port)进行控制
|
void |
setEnvironment(org.springframework.core.env.Environment environment) |
public int getPort()
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwareCopyright © 2018. All Rights Reserved.