📄 refreshlistener.java
字号:
package sp.demo1;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
public class RefreshListener implements ApplicationListener{
/* (non-Javadoc)
* @see org.springframework.context.ApplicationListener#onApplicationEvent(org.springframework.context.ApplicationEvent)
*/
public void onApplicationEvent(ApplicationEvent event) {
System.out.println(event.getTimestamp() + " :" + event.toString());
System.out.println(event.getClass()+"-------"+event.getSource()+"-------"+event.toString());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -