View the version of the SpringBoot project

Run the code directly:

public static void main(String[] args) {
    
    
        String springVersion = SpringVersion.getVersion();
        String springBootVersion = SpringBootVersion.getVersion();
        System.out.println("Spring版本:"+springVersion+"\nSpringBoot版本:"+springBootVersion);
    }

result:

insert image description here

Guess you like

Origin blog.csdn.net/weixin_45686583/article/details/125782967