public class RemoveBeanCacheListener extends Object implements org.springframework.context.ApplicationListener<org.springframework.web.context.support.ServletRequestHandledEvent>
| 构造器和说明 |
|---|
RemoveBeanCacheListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearBeanCache()
清楚bean cache
|
void |
onApplicationEvent(org.springframework.web.context.support.ServletRequestHandledEvent servletRequestHandledEvent) |
public void clearBeanCache()
throws NoSuchFieldException,
IllegalAccessException
public void onApplicationEvent(org.springframework.web.context.support.ServletRequestHandledEvent servletRequestHandledEvent)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.web.context.support.ServletRequestHandledEvent>Copyright © 2023. All rights reserved.