[springboot] spring-boot-maven-plugin指定版本问题

1. pom.xml文件报如下错误:(需要指定版本)

Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found
    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
    

解决方法:

打开Maven本地仓库。查看/org/springframework/boot路径下的spring-boot-maven-plugin文件夹底下,是否存在与springboot的版本相对应版本号,如果存在,添加标签为自己的springboot版本(这里我的版本是2.7.5):

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                2.7.5
            
        
    

你可能感兴趣的:(其他随记,spring,boot,spring,java)