Could not find artifact org.springframework.boot:spring-boot-starter-parent

项目一直用的好好,突然出这spring-boot-starter-parent 这个找不到了,通过这几天的改动,发现修改过maven的setting.xml ,由于添加了其他的仓库地址,,把仓库地址修改好,重新Reload project 之后就没问题了,下面是我的setting.xml配置

下面是一个基础Springboot 配置信息,可以满足正常小项目开发


    nexus-aliyun
    central
    Nexus aliyun
    https://maven.aliyun.com/nexus/content/groups/public
 
  


jboss-public-repository-group

central

JBoss Public Repository Group

http://repository.jboss.org/nexus/content/groups/public

        jdk-19    
            
            true    
            19    
            
            
            19    
            19    
            19    
            
     

pom.xml 配置,这个一基础的配置,只引入springboot ,数据库驱动,前端框架layui ,thymeleaf 模板引擎



    4.0.0
    
        org.springframework.boot
        spring-boot-starter-parent
        3.0.4
         
    
    com.jm
    first
    0.0.1-SNAPSHOT
    first
    Demo project for Spring Boot
    
        19
    
    
        
            org.springframework.boot
            spring-boot-starter-web
        

        
            org.projectlombok
            lombok
            true
        
        
            org.springframework.boot
            spring-boot-starter-test
            test
        

        
        
            org.springframework.boot
            spring-boot-starter-aop
        

        
            org.mybatis.spring.boot
            mybatis-spring-boot-starter
            3.0.1
        

        
            mysql
            mysql-connector-java
            8.0.20
        


        
            org.springframework.boot
            spring-boot-starter-thymeleaf
        

        
            org.webjars
            webjars-locator
            0.45
        
        
            org.webjars
            jquery
            3.5.1
        
        
            org.webjars
            layui
            2.5.7
        


    

    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    
                        
                            org.projectlombok
                            lombok
                        
                    
                
            
        
    

appliaction.yml

server:
  port:80

spring:
datasource:
username: root
password: 123456
url: jdbc:mysql://localhost:3306/goods?userUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
driver-class-name: com.mysql.jc.Driver
#com.mysql.jdbc.Driver
  thymeleaf:
cache: false
    encoding: UTF-8
mode: HTMLapp
prefix: classpath:/templates/
suffix: .html
mybatis:
mapper-locations: classpath*:mapper/*.xml
#type-aliases-package: com.jm.first.mapper
  configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl   #用于控制台打印sql语句

你可能感兴趣的:(springboot,java,spring,spring,boot,mybatis)