cy
2023-09-28 2ec3f7a61c014b94e4f7feb1f55f1923ec2235a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.integrated.startListen;
 
import com.integrated.zyyt.ZyytConstant;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
 
/**
 * @ClassName ShowUrl
 * @Author cy
 * @Date 2023/9/28
 * @Description
 * @Version 1.0
 **/
@Component
public class ShowUrl implements ApplicationListener<ApplicationStartedEvent> {
 
    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
        System.out.println(ZyytConstant.getUrlInfo());
    }
}