Error reporting is shown in the figure above
Results after carefully checking the error information, it is found that:
at demo0929.UserServiceApplication.main(UserServiceApplication.java:12) ~[classes/:na]
The format of package scanning configuration is incorrect, as shown in the following figure:
import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@DubboComponentScan(basePackages = {"demo0929.service"})
public class UserServiceApplication {
public static void main(String[] args) {
SpringApplication.run(UserServiceApplication.class,args);
}
}
Then delete the cache in the target
Read More:
- [Solved] Bat starts springboot project error: ERROR org.springframework.boot.SpringApplication -Application run failed
- Two implementation methods of spring boot scan mapper interface class
- Spring boot uses configuration interface webmvcconfigurer to solve cross domain problems
- New Spring boot startup error Failed to auto-configure a DataSource
- Dyf Spring boot startup error: NoSuchBeanDefinitionException
- [How to Fix] Spring boot startup error: could not resolve placeholder
- Spring Boot Druid Error: discard long time none received connection
- Causes of error in data transmission from spring boot to JSON
- [neo4j] error report when visiting neo4j in spring boot project
- [Solved] spring boot – JPA–H2 Error: H2 error: “Syntax error in SQL statement … expected identifier“
- IDEA generates Spring Boot project error: error: read timed out
- [Solved] spring boot security Start Error: ‘login.html?error‘ is not a valid redirect URL
- Springboot running shows application run failed [How to Solve]
- Calling Dubbo Service reported the following error (com.alibaba.dubbo.remoting.RemotingException) Causes and Solutions
- Error running ‘PigSellCabinetApplication’: Command line is too long. Shorten command line for PigSellCabinetApplication or also for Spring Boot default configuration
- Wildfly (JBoss) startup error: ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation (“add”) failed
- dubbo 2.5.4-SNAPSHOT dubbo-admin [How to Solve]
- The Ajax return value reports an error, and the spring boot development Ajax return value reports an error
- [Solved] NDK JNI DETECTED ERROR IN APPLICATION: use of deleted local reference
- K8s cluster initialization error: Port 6443 is in use [Solved]