About IDEA2023 building Spring boot and problems encountered

1. Build spring boot

1. Set up the environment


  • IDEA2023.1 development version

  • JDK17

  • Windows11

2.Building steps
(1) Click NEW Project


(2) Initialization step one
  1. Spring Initializr

  2. Name: self-named (if it’s not important, don’t change it)

  3. Location: self-selected (don’t change it if it’s not important)

  4. Language:Java

  5. Type:Maven

  6. Group: self-named (if it’s not important, don’t change it)

  7. Artifact: Self-named (if it’s not important, you don’t need to change it)

  8. Package name: self-named (if it’s not important, you don’t need to change it)

  9. JDK:17 (I choose the 17 version of my local configuration)

  10. Java: Choose the matching one yourself (I chose 17)

  11. Packaging:Jar

  12. Finally click next

(2) Initialization step two
  1. Spring Boot: Choose your own match (I chose 2.7.14, and after using 3.0.10, it often caused mismatches with other dependent versions)
  2. Check these three
  • Spring Boot DevTools

  • Lombok

  • Spring Web

  1. Finally click create and you are done


2. Configure Maven domestic sources

1. Configure the environment
  • apache-maven-3.9.0
  • Windows11

2. Configuration steps
(1) Step 1
  1. Open settings.xml in the conf under the apache-maven-3.9.0 file (drag and drop setting.xml to the notepad of window11 itself)

  2. Write the following code into mirrors
	<mirror>
        <id>alimaven</id>
        <name>aliyun maven</name>
 <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <mirrorOf>central</mirrorOf>        
      </mirror>


  1. Click Save to complete

3. Reinstallation failed after jdk was uninstalled

Reinstallation failed after uninstalling jdk

Guess you like

Origin blog.csdn.net/m0_63084496/article/details/131839149