public class WxContextUtils extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>, org.springframework.core.Ordered
Constructor and Description |
---|
WxContextUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getBean(Class<T> clazz) |
int |
getOrder() |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent applicationReadyEvent)
本来想用Prepared的,但是发现prepared没有地方发布这个事件,可恶
|
static String |
resolveStringValue(String value)
解析参数值并执行spel表达式,得到最终结果
Spring的@Value也是这样做的
|
public static String resolveStringValue(String value)
public static <T> T getBean(Class<T> clazz)
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent applicationReadyEvent)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
applicationReadyEvent
- public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2018 Guangshan Technology, Inc.. All rights reserved.