如何查看springboot、spring版本

@SpringBootTest
class DemoApplicationTests { 
    @Test
    public void Test1(){ 
        String version = SpringVersion.getVersion();
        String version1 = SpringBootVersion.getVersion();
        System.out.println(version);
        System.out.println(version1);
    }
}
    原文作者:杉菜酱_
    原文地址: https://blog.csdn.net/qq_45479404/article/details/109788736
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞