Category Archives: JAVA

[Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

The new Android studio (4.2) no longer supports the old one

com.android.tools.build:gradle:2.3.3

However, some methods and classes will not be found.

Go to build Change this classpath to the latest version in gradle. It’s best to update the versions of gradle and gradle wrapper. For example:

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}

As shown in the figure above, don’t forget Maven plus Google()

How to Solve Error: spring-boot-maven-plugin not found

Create a springboot project through the IDE

<plugin>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-maven-plugin</artifactId>//the Line 
</plugin>

Prompt spring boot Maven plugin not found. I found it on the Internet by adding <pluginRepositories> It was solved, but it didn’t work after testing. After many attempts, the spring boot Maven plugin was successfully resolved after specifying the version.

Modified POM.XML file

<plugin>  
 <groupId>org.springframework.boot</groupId>  
 <artifactId>spring-boot-maven-plugin</artifactId>  
 <version>2.2.2.RELEASE</version>
</plugin>

[Solved] Division Error: java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.

1. Background

Today, an error was encountered when calculating the inventory consumption percentage (consumed inventory/total inventory).Java.lang.arithmetexception: non terminating decimal expansion; no exact representable decimal result

Through the description of the exception, we know that this is because in some scenarios, for example, 1/3 will get an infinite decimal. At this time, it needs to be defined that the calculation result should be kept to a few digits after the decimal point, otherwise the above exception will be thrown.

2. Method introduction

The method used when an exception occurs. This method has no precision setting.

public BigDecimal divide(BigDecimal divisor) 

In the division operation, we need to use the following methods for accuracy control.

public BigDecimal divide(BigDecimal divisor, int scale, int roundingMode)

Attachment: don’t forget to judge whether the denominator is 0

3. The code is as follows

BigDecimal b1 = new BigDecimal(1);
BigDecimal b2 = new BigDecimal(3);
if (!Objects.equals(b2, BigDecimal.ZERO)) {
    // Cannot divide, mathematically infinitesimal, throws an ArithmeticException
    // BigDecimal b3 = b1.divide(b2);
    // Specify the precision of the calculation result, the number of decimal places to be retained, and the rounding mode
    BigDecimal b3 = b1.divide(b2, 4, BigDecimal.ROUND_HALF_UP);
    System.out.println(b3.toEngineeringString());
}

[Solved] Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘jdbc.username’ in string value “${jdbc.username}”

1. The following error is reported when starting Dubbo’s reference Dubbo service. This is because the error reported cannot be found when looking for Dubbo’s publishing service, so start Dubbo’s publishing service first.

  1 [INFO] Scanning for projects...
  2 [INFO] 
  3 [INFO] -------------------< com.taotao:taotao-manager-web >--------------------
  4 [INFO] Building taotao-manager-web 0.0.1-SNAPSHOT
  5 [INFO] --------------------------------[ war ]---------------------------------
  6 [INFO] 
  7 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-web ---
  8 [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager-web\target
  9 [INFO] 
 10 [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-web >>>
 11 [INFO] 
 12 [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-web ---
 13 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 14 [INFO] Copying 1 resource
 15 [INFO] 
 16 [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-web ---
 17 [INFO] Changes detected - recompiling the module!
 18 [INFO] Compiling 1 source file to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager-web\target\classes
 19 [INFO] 
 20 [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-web <<<
 21 [INFO] 
 22 [INFO] 
 23 [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-web ---
 24 [INFO] Running war on http://localhost:8081/
 25 [INFO] Creating Tomcat server configuration at D:\program\eclipse\eclipse\workspace_taotao\taotao-manager-web\target\tomcat
 26 [INFO] create webapp with contextPath: 
 27 八月 03, 2019 10:09:58 下午 org.apache.coyote.AbstractProtocol init
 28 信息: Initializing ProtocolHandler ["http-bio-8081"]
 29 八月 03, 2019 10:09:58 下午 org.apache.catalina.core.StandardService startInternal
 30 信息: Starting service Tomcat
 31 八月 03, 2019 10:09:58 下午 org.apache.catalina.core.StandardEngine startInternal
 32 信息: Starting Servlet Engine: Apache Tomcat/7.0.47
 33 八月 03, 2019 10:10:01 下午 org.apache.catalina.core.ApplicationContext log
 34 信息: No Spring WebApplicationInitializer types detected on classpath
 35 log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
 36 log4j:WARN Please initialize the log4j system properly.
 37 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
 38 八月 03, 2019 10:10:01 下午 org.apache.catalina.core.ApplicationContext log
 39 信息: Initializing Spring FrameworkServlet 'taotao-manager-web'
 40 八月 03, 2019 10:10:03 下午 org.apache.catalina.core.ApplicationContext log
 41 严重: StandardWrapper.Throwable
 42 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.taotao.service.ItemService com.taotao.controller.ItemController.itemService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
 43     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
 44     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
 45     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
 46     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
 47     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
 48     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
 49     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
 50     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
 51     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
 52     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
 53     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
 54     at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
 55     at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
 56     at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
 57     at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
 58     at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
 59     at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
 60     at javax.servlet.GenericServlet.init(GenericServlet.java:160)
 61     at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
 62     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
 63     at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
 64     at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
 65     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
 66     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 67     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
 68     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
 69     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 70     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 71     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 72     at java.lang.Thread.run(Thread.java:745)
 73 Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.taotao.service.ItemService com.taotao.controller.ItemController.itemService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
 74     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573)
 75     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
 76     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
 77     ... 29 more
 78 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
 79     at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
 80     at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
 81     at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1585)
 82     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)
 83     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
 84     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)
 85     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116)
 86     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
 87     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545)
 88     ... 31 more
 89 Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
 90     at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420)
 91     at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)
 92     at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)
 93     at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)
 94     at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
 95     ... 39 more
 96 
 97 八月 03, 2019 10:10:03 下午 org.apache.catalina.core.StandardContext loadOnStartup
 98 严重: Servlet  threw load() exception
 99 java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service com.taotao.service.ItemService from the url zookeeper://192.168.110.140:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.ItemService&methods=getItemById&pid=13568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1564841403197 to the consumer 192.168.110.1 use dubbo version 2.5.3
100     at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420)
101     at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)
102     at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)
103     at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)
104     at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
105     at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
106     at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1585)
107     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)
108     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
109     at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)
110     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116)
111     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
112     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545)
113     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
114     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
115     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
116     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
117     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
118     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
119     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
120     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
121     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
122     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
123     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
124     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
125     at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
126     at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
127     at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
128     at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
129     at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
130     at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
131     at javax.servlet.GenericServlet.init(GenericServlet.java:160)
132     at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
133     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
134     at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
135     at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
136     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
137     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
138     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
139     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
140     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
141     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
142     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
143     at java.lang.Thread.run(Thread.java:745)
144 
145 八月 03, 2019 10:10:03 下午 org.apache.coyote.AbstractProtocol start
146 信息: Starting ProtocolHandler ["http-bio-8081"]

2. Then I found that my Dubbo publishing service reported this error.

  1 [INFO] Scanning for projects...
  2 [INFO] ------------------------------------------------------------------------
  3 [INFO] Reactor Build Order:
  4 [INFO] 
  5 [INFO] taotao-manager                                                     [pom]
  6 [INFO] taotao-manager-pojo                                                [jar]
  7 [INFO] taotao-manager-dao                                                 [jar]
  8 [INFO] taotao-manager-interface                                           [jar]
  9 [INFO] taotao-manager-service                                             [war]
 10 [INFO] 
 11 [INFO] ---------------------< com.taotao:taotao-manager >----------------------
 12 [INFO] Building taotao-manager 0.0.1-SNAPSHOT                             [1/5]
 13 [INFO] --------------------------------[ pom ]---------------------------------
 14 [INFO] 
 15 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager ---
 16 [INFO] 
 17 [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager >>>
 18 [INFO] 
 19 [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager <<<
 20 [INFO] 
 21 [INFO] 
 22 [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager ---
 23 [INFO] Skipping non-war project
 24 [INFO] 
 25 [INFO] -------------------< com.taotao:taotao-manager-pojo >-------------------
 26 [INFO] Building taotao-manager-pojo 0.0.1-SNAPSHOT                        [2/5]
 27 [INFO] --------------------------------[ jar ]---------------------------------
 28 [INFO] 
 29 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-pojo ---
 30 [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-pojo\target
 31 [INFO] 
 32 [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-pojo >>>
 33 [INFO] 
 34 [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-pojo ---
 35 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 36 [INFO] Copying 0 resource
 37 [INFO] 
 38 [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-pojo ---
 39 [INFO] Changes detected - recompiling the module!
 40 [INFO] Compiling 22 source files to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-pojo\target\classes
 41 [INFO] 
 42 [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-pojo <<<
 43 [INFO] 
 44 [INFO] 
 45 [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-pojo ---
 46 [INFO] Skipping non-war project
 47 [INFO] 
 48 [INFO] -------------------< com.taotao:taotao-manager-dao >--------------------
 49 [INFO] Building taotao-manager-dao 0.0.1-SNAPSHOT                         [3/5]
 50 [INFO] --------------------------------[ jar ]---------------------------------
 51 [INFO] 
 52 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-dao ---
 53 [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-dao\target
 54 [INFO] 
 55 [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-dao >>>
 56 [INFO] 
 57 [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-dao ---
 58 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 59 [INFO] Copying 0 resource
 60 [INFO] 
 61 [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-dao ---
 62 [INFO] Changes detected - recompiling the module!
 63 [INFO] Compiling 11 source files to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-dao\target\classes
 64 [INFO] 
 65 [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-dao <<<
 66 [INFO] 
 67 [INFO] 
 68 [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-dao ---
 69 [INFO] Skipping non-war project
 70 [INFO] 
 71 [INFO] ----------------< com.taotao:taotao-manager-interface >-----------------
 72 [INFO] Building taotao-manager-interface 0.0.1-SNAPSHOT                   [4/5]
 73 [INFO] --------------------------------[ jar ]---------------------------------
 74 [INFO] 
 75 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-interface ---
 76 [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-interface\target
 77 [INFO] 
 78 [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-interface >>>
 79 [INFO] 
 80 [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-interface ---
 81 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 82 [INFO] Copying 0 resource
 83 [INFO] 
 84 [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-interface ---
 85 [INFO] Changes detected - recompiling the module!
 86 [INFO] Compiling 1 source file to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-interface\target\classes
 87 [INFO] 
 88 [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-interface <<<
 89 [INFO] 
 90 [INFO] 
 91 [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-interface ---
 92 [INFO] Skipping non-war project
 93 [INFO] 
 94 [INFO] -----------------< com.taotao:taotao-manager-service >------------------
 95 [INFO] Building taotao-manager-service 0.0.1-SNAPSHOT                     [5/5]
 96 [INFO] --------------------------------[ war ]---------------------------------
 97 [INFO] 
 98 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-service ---
 99 [INFO] Deleting D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-service\target
100 [INFO] 
101 [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-service >>>
102 [INFO] 
103 [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-service ---
104 [INFO] Using 'UTF-8' encoding to copy filtered resources.
105 [INFO] Copying 5 resources
106 [INFO] 
107 [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-service ---
108 [INFO] Changes detected - recompiling the module!
109 [INFO] Compiling 1 source file to D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-service\target\classes
110 [INFO] 
111 [INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-service <<<
112 [INFO] 
113 [INFO] 
114 [INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-service ---
115 [INFO] Running war on http://localhost:8080/
116 [INFO] Creating Tomcat server configuration at D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-service\target\tomcat
117 [INFO] create webapp with contextPath: 
118 八月 03, 2019 10:09:35 下午 org.apache.coyote.AbstractProtocol init
119 信息: Initializing ProtocolHandler ["http-bio-8080"]
120 八月 03, 2019 10:09:35 下午 org.apache.catalina.core.StandardService startInternal
121 信息: Starting service Tomcat
122 八月 03, 2019 10:09:35 下午 org.apache.catalina.core.StandardEngine startInternal
123 信息: Starting Servlet Engine: Apache Tomcat/7.0.47
124 八月 03, 2019 10:09:38 下午 org.apache.catalina.core.ApplicationContext log
125 信息: No Spring WebApplicationInitializer types detected on classpath
126 八月 03, 2019 10:09:38 下午 org.apache.catalina.core.ApplicationContext log
127 信息: Initializing Spring root WebApplicationContext
128 log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
129 log4j:WARN Please initialize the log4j system properly.
130 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
131 八月 03, 2019 10:09:39 下午 org.apache.catalina.core.StandardContext listenerStart
132 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
133 org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in file [D:\program\eclipse\eclipse\workspace_taotao\taotao-manager\taotao-manager-service\target\classes\spring\applicationContext-dao.xml]: Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"
134     at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:211)
135     at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.processProperties(PropertySourcesPlaceholderConfigurer.java:177)
136     at org.springframework.context.support.PropertySourcesPlaceholderConfigurer.postProcessBeanFactory(PropertySourcesPlaceholderConfigurer.java:152)
137     at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)
138     at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:166)
139     at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678)
140     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520)
141     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
142     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
143     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
144     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
145     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
146     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
147     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
148     at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
149     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
150     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
151     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
152     at java.lang.Thread.run(Thread.java:745)
153 Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'jdbc.username' in string value "${jdbc.username}"
154     at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)
155     at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
156     at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:204)
157     at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:178)
158     at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$2.resolveStringValue(PropertySourcesPlaceholderConfigurer.java:172)
159     at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282)
160     at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204)
161     at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:141)
162     at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:82)
163     at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:208)
164     ... 18 more
165 
166 八月 03, 2019 10:09:39 下午 org.apache.catalina.core.StandardContext startInternal
167 严重: Error listenerStart
168 八月 03, 2019 10:09:39 下午 org.apache.catalina.core.StandardContext startInternal
169 严重: Context [] startup failed due to previous errors
170 八月 03, 2019 10:09:39 下午 org.apache.catalina.core.ApplicationContext log
171 信息: Closing Spring root WebApplicationContext
172 八月 03, 2019 10:09:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
173 严重: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
174 八月 03, 2019 10:09:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
175 严重: The web application [] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
176 八月 03, 2019 10:09:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
177 严重: The web application [] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
178 八月 03, 2019 10:09:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
179 严重: The web application [] registered the JDBC driver [com.alibaba.druid.mock.MockDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
180 八月 03, 2019 10:09:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
181 严重: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
182 八月 03, 2019 10:09:39 下午 org.apache.coyote.AbstractProtocol start
183 信息: Starting ProtocolHandler ["http-bio-8080"]

It was my dB There is a configuration error in the properties configuration file. So be careful, avoid many mistakes and skip many pits.

Modify and restart. Start Dubbo’s publishing service first, and then Dubbo’s reference service. OK, start again, and there is no error.

To be continued

[Solved] IDEA Run Error: java: JPS incremental annotation processing is disabled.

SpringCloud Compile Error: java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate. Use build process “jps.track.ap.dependencies” VM flag to enable/disable incremental annotation processing environment.

Solution:
1.Add: -Djps.track.ap.dependencies=false
2.Clear the caches

Visual Studio Failed to Start Error: throw error ‘cannot run when setup is in progress’

Cannot open Visual Studio – throw error ‘cannot run when setup is in progress’I had this problem with Visual Studio 2017. There were processes in Task Manager named VSIXAutoUpdate.exe. I watched Task Manager and they were spawning and despawning. A few times, a Visual Studio 2017 process would spawn and despawn.
After VSIX Auto Updater stopped showing up in Task Manager, it had applied all of it’s background updates and I was able to launch Visual Studio.
I wouldn’t recommend killing these processes in the middle of them installing updates, like other answers to this question suggest. Just wait until they finish by watching Task Manager.

C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXConfigurationUpdater.exe

[Solved] Maven Error: Unable to import maven project: See logs for details

1. Development environment

idea2019. 1 + apache-maven-3.6.2 + JDK 1.8.0_111

2. Problem description

After importing the maven multi-module project, it is found that the project has no multi-module expansion, and the related jar package reference is not seen in External Libraries . Idea also prompts an error: Unable to import maven project: See logs for details

You can view the specific error log in help = = show log in Explorer:

The error information is as follows:

2019-10-31 13:53:26,315 [9780537]  ERROR -      #org.jetbrains.idea.maven - com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for org.apache.maven.model.path.PathTranslator was bound.
  while locating org.apache.maven.model.path.PathTranslator
    for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.pathTranslator(Unknown Source)
  at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

2) No implementation for org.apache.maven.model.path.UrlNormalizer was bound.
  while locating org.apache.maven.model.path.UrlNormalizer
    for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.urlNormalizer(Unknown Source)
  at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

2 errors 
java.lang.RuntimeException: com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for org.apache.maven.model.path.PathTranslator was bound.
  while locating org.apache.maven.model.path.PathTranslator
    for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.pathTranslator(Unknown Source)
  at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

2) No implementation for org.apache.maven.model.path.UrlNormalizer was bound.
  while locating org.apache.maven.model.path.UrlNormalizer
    for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.urlNormalizer(Unknown Source)
  at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350)

2 errors
    at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)
    at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:159)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
    at com.google.inject.Guice.createInjector(Guice.java:87)
    at com.google.inject.Guice.createInjector(Guice.java:69)
    at com.google.inject.Guice.createInjector(Guice.java:59)
    at org.codehaus.plexus.DefaultPlexusContainer.addComponent(DefaultPlexusContainer.java:344)
    at org.codehaus.plexus.DefaultPlexusContainer.addComponent(DefaultPlexusContainer.java:332)
    at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.customizeComponents(Maven3ServerEmbedderImpl.java:556)
    at org.jetbrains.idea.maven.server.Maven3ServerEmbedderImpl.customize(Maven3ServerEmbedderImpl.java:526)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
    at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
    at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
    at com.sun.proxy.$Proxy111.customize(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor584.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:175)
    at com.intellij.execution.rmi.RemoteUtil.access$200(RemoteUtil.java:38)
    at com.intellij.execution.rmi.RemoteUtil$1$1$1.compute(RemoteUtil.java:156)
    at com.intellij.openapi.util.ClassLoaderUtil.runWithClassLoader(ClassLoaderUtil.java:66)
    at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:227)
    at com.intellij.execution.rmi.RemoteUtil$1$1.invoke(RemoteUtil.java:153)
    at com.sun.proxy.$Proxy111.customize(Unknown Source)
    at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.doCustomize(MavenEmbedderWrapper.java:96)
    at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.onWrappeeCreated(MavenEmbedderWrapper.java:49)
    at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:42)
    at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.doCustomize(MavenEmbedderWrapper.java:96)
    at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.lambda$customizeForResolve$1(MavenEmbedderWrapper.java:69)
    at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76)
    at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.customizeForResolve(MavenEmbedderWrapper.java:68)
    at org.jetbrains.idea.maven.project.MavenProjectsTree.resolve(MavenProjectsTree.java:1272)
    at org.jetbrains.idea.maven.project.MavenProjectsProcessorResolvingTask.perform(MavenProjectsProcessorResolvingTask.java:45)
    at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:135)
    at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:32)
    at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:109)
    at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:458)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
2019-10-31 13:53:26,316 [9780538]  ERROR -      #org.jetbrains.idea.maven - IntelliJ IDEA 2019.1  Build #IU-191.6183.87 
2019-10-31 13:53:26,316 [9780538]  ERROR -      #org.jetbrains.idea.maven - JDK: 1.8.0_202-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 
2019-10-31 13:53:26,316 [9780538]  ERROR -      #org.jetbrains.idea.maven - OS: Windows 7 
2019-10-31 13:53:26,330 [9780552]  ERROR -      #org.jetbrains.idea.maven - Last Action: CloseProject 
2019-10-31 13:53:34,447 [9788669]   INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 285 ms 
2019-10-31 13:53:57,391 [9811613]   WARN - gin.utils.ProfilingUtilAdapter - YourKit controller initialization failed : To profile application, you should run it with the profiler agent 
2019-10-31 13:54:21,528 [9835750]   INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 66 ms 
2019-10-31 13:55:52,584 [9926806]   INFO - ide.actions.ShowFilePathAction - 
Exit code 1 
2019-10-31 13:55:53,004 [9927226]   INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 46 ms

3. Solution

Change to a lower version of maven, such as apache-maven-3.5.4 or apache-maven-3.3.9. This may be idea2019.1 is not compatible with the higher version of Maven (apache-maven-3.6.2).

How to Solve Spring Bean Same Name Conflict

When springboot is started, it often fails to start. It is found that there are services and serviceimpl with the same name under different packages. It is reasonable to say that there can be classes with the same name under different packages, but it cannot be started. An error is reported

org. springframework. context. annotation. ConflictingBeanDefinitionException: Annotation-specified bean name ‘roleServiceImpl’ for bean class [com.example.service.RoleServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.example.roleService.RoleServiceImpl]

Meaning: the class [com. Example. Service. Roleserviceimpl] annotated with bean name ‘roleserviceimpl’ conflicts with the existing incompatible class with the same name [com.Example.Roleservice.Roleserviceimpl].

It turns out that the annotation @service is only used on these two implementation classes. According to the mapping rules, these two services are mapped to roleserviceimpl, which conflicts.

Solution:

1. change one of the implementation classes to a different name;

2: change one of the annotations to an annotation @service (name = “AAAA”) whose name is non roleserviceimpl.

Start again, OK.

[Solved] Startup Error: Failed to start bean ‘documentationPluginsBootstrapper’

The error is spring boot version 2.6 or above and springfox swagger version 3.0 Compatibility issues with 0

Solution:

  • Downgrade springboot to 2.5.X and below
  • In the configuration in the spring configuration file: spring.mvc.pathmatch.matching-strategy=ant_path_matcher
  • However, the springfox bug has lasted for a long time and the team has not resolved it. So I suggest you use spring doc as a replacement

[Solved] Encryption and decryption error: java.lang.SecurityException: JCE cannot authenticate the provider BC

1: In the path
jdk\jre\lib\security in the java.security file to add configuration (11 serial number to see the previous configuration serial number in the file, add 1 to the base)
security.provider.11=org.bouncycastle.jce.provider.BouncyCastleProvider
2:Add the bcprov-jdk15on-1.66.jar package to jdk\jre\lib\ext