During development, sometimes when you open a project to install a dependency, or create a new springboot project to install some dependencies, the following errors appear inexplicably:
First check whether there is a problem with the network. If the network is normal, 99% of the problems occur in the Maven configuration of the idea. Open it settings -& gt; Find the location of the screenshot below and modify the following two places:
Maven home path: the installation directory of Maven
user setttings file: Maven installation directory – & gt; conf -> Setting.xml file path
local repository: This is a customized Maven local repository after downloading Maven. Mine is in the Maven installation directory.
After these three settings are completed, click apply, OK and refresh.
Read More:
- Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.4.0:repackage failed
- Cannot resolve plugin org.apache.maven.plugins:maven-jar-plugin:2.4
- Idea error: (4, 46) Java: package org.springframework.boot . autoconfigure does not exist problem solving
- Error processing condition on org.springframework.boot . autoconfigure.context.Property Error report solution
- org.springframework.orm . hibernate3. Hibernatequeryexception: XXX is not mapped solution
- BUG——Could not resolve placeholder ‘xxx‘ in value ‘${xxx}‘
- Idea couldn’t be found org.springframework.context .support
- Spring boot prompt could not resolve placeholder in string value
- Failed to load bundle…Unable to resolve module `xxx` from xxx: Module `xx` does not exist
- ‘dependencies.dependency.version‘ for org.springframework.cloud:spring-cloud-starter-openfeign:jar
- Springboot startup error could not resolve placeholder XXX
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0
- 解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- NoClassDefFoundError: org.springframework.validation.annotation.ValidationAnnotationUtils
- org.springframework.beans.factory.UnsatisfiedDependencyException
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘use
- Caused by: org.springframework.beans.factory.beancreationexception: error creating be
- Solution in idea java.lang.ClassNotFoundException : org.springframework.web . context.ContextLoaderListener
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serviceImpl‘