Category Archives: Error

Hive initialization metadata error [How to Solve]

Hive was configured today, and an error was reported to me when initializing metadata

I first modify hive/conf/hive site XML configuration file, adding servertimezone = UTC

<property>
    <name>javax.jdo.option.ConnectionURL</name>
    <value>jdbc:mysql://192.168.244.1:3306/hive?createDatabaseIfNotExist=true&amp;useSSL=false&amp;serverTimezone=UTC</value>
</property>

Then I still can’t

This error is because your database name or table name already exists. You need to delete the previous one or re create a new one, directly in/conf/hive site Modify the XML configuration file below, as shown in the figure below. Just redefine the name of a database

[Solved] appium Environment Build appium-doctor –ios Command Error

In the process of building appium environment, various errors will appear when running appium doctor — IOS command.

Error 1: dB and IDB_companion are not installed

Solution:

1. Update MAC system and Xcode software

2. Run command

brew tap facebook/fb
brew install idb-companion
pip install fb-idb

Just.

Error 2: opencv4nodejs cannot be found

1. Install cmake and check the version

cmake -version

2. Run command

npm -g install opencv4nodejs --ignore-scripts

Just.

92 integrated platform insert and upgrade Error: caused by: Java sql. SQLException: ORA-00257: archiver error. Connect internal only, until freed. Cancel the current operation with the user

Error 1:

com.orchestral.rhapsody.component.type.filter.FilterProcessingException: [com.orchestral.rhapsody.model.i18n.ErrorCodeProvider/_547171987_2] Could not create new filter to process Message
	at com.orchestral.rhapsody.model.spi.LimitedConcurrencyFilter.processMessage(LimitedConcurrencyFilter.java:127)
	at com.orchestral.rhapsody.execution.route.spi.targets.FilterTarget.filterSingleMessage(FilterTarget.java:160)
	at com.orchestral.rhapsody.execution.route.spi.targets.FilterTarget.filter(FilterTarget.java:201)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.filter(RouteExecutor.java:454)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.filterProcessingState(RouteExecutor.java:403)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.execute(RouteExecutor.java:229)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutionThread.run(RouteExecutionThread.java:16)
Caused by: com.orchestral.rhapsody.module.api_2_0.impl.adapter.in.FilterExceptionAdapter: [com.orchestral.rhapsody.modules.database.i18n.ErrorCodeProvider/_1142878270_5646] Database LookUp may not be configured properly
	at com.orchestral.rhapsody.module.api_2_0.impl.adapter.in.FilterAdapter.start(FilterAdapter.java:4)
	at com.orchestral.rhapsody.component.type.spi.FilterProxyImpl.start(FilterProxyImpl.java:5)
	at com.orchestral.rhapsody.model.spi.LimitedConcurrencyFilter.getFilter(LimitedConcurrencyFilter.java:25)
	at com.orchestral.rhapsody.model.spi.LimitedConcurrencyFilter.processMessage(LimitedConcurrencyFilter.java:118)
	at com.orchestral.rhapsody.execution.route.spi.targets.FilterTarget.filterSingleMessage(FilterTarget.java:160)
	at com.orchestral.rhapsody.execution.route.spi.targets.FilterTarget.filter(FilterTarget.java:201)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.filter(RouteExecutor.java:454)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.filterProcessingState(RouteExecutor.java:403)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.execute(RouteExecutor.java:229)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutionThread.run(RouteExecutionThread.java:16)
Caused by: com.orchestral.rhapsody.module.api_2_0.module.filter.FilterNotRunningException: [com.orchestral.rhapsody.modules.database.i18n.ErrorCodeProvider/_1142878270_5646] Database LookUp may not be configured properly
	at com.orchestral.rhapsody.modules.database.filters.AbstractDatabaseFilter.start(AbstractDatabaseFilter.java:75)
	at com.orchestral.rhapsody.module.api_2_0.impl.adapter.in.FilterAdapter.start(FilterAdapter.java:33)
	at com.orchestral.rhapsody.component.type.spi.FilterProxyImpl.start(FilterProxyImpl.java:5)
	at com.orchestral.rhapsody.model.spi.LimitedConcurrencyFilter.getFilter(LimitedConcurrencyFilter.java:25)
	at com.orchestral.rhapsody.model.spi.LimitedConcurrencyFilter.processMessage(LimitedConcurrencyFilter.java:118)
	at com.orchestral.rhapsody.execution.route.spi.targets.FilterTarget.filterSingleMessage(FilterTarget.java:160)
	at com.orchestral.rhapsody.execution.route.spi.targets.FilterTarget.filter(FilterTarget.java:201)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.filter(RouteExecutor.java:454)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.filterProcessingState(RouteExecutor.java:403)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.execute(RouteExecutor.java:229)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutionThread.run(RouteExecutionThread.java:16)
Caused by: com.orchestral.rhapsody.module.helper.database.DBConnectionFailedException: [com.orchestral.rhapsody.module.helper.database.i18n.ErrorCodeProvider/_301912668_22] Unable to establish a connection with the database 'main database' to 'jdbc:oracle:thin:@//192.168.12.93:1521/HIPEX'.
	at com.orchestral.rhapsody.module.helper.database.DatabaseConnection.connect(DatabaseConnection.java:83)
	at com.orchestral.rhapsody.modules.database.spi.dbconnection.DBConnectionController.openAllConnections(DBConnectionController.java:50)
	at com.orchestral.rhapsody.modules.database.filters.AbstractDatabaseFilter.start(AbstractDatabaseFilter.java:41)
	at com.orchestral.rhapsody.module.api_2_0.impl.adapter.in.FilterAdapter.start(FilterAdapter.java:33)
	at com.orchestral.rhapsody.component.type.spi.FilterProxyImpl.start(FilterProxyImpl.java:5)
	at com.orchestral.rhapsody.model.spi.LimitedConcurrencyFilter.getFilter(LimitedConcurrencyFilter.java:25)
	at com.orchestral.rhapsody.model.spi.LimitedConcurrencyFilter.processMessage(LimitedConcurrencyFilter.java:118)
	at com.orchestral.rhapsody.execution.route.spi.targets.FilterTarget.filterSingleMessage(FilterTarget.java:160)
	at com.orchestral.rhapsody.execution.route.spi.targets.FilterTarget.filter(FilterTarget.java:201)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.filter(RouteExecutor.java:454)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.filterProcessingState(RouteExecutor.java:403)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutor.execute(RouteExecutor.java:229)
	at com.orchestral.rhapsody.execution.route.spi.RouteExecutionThread.run(RouteExecutionThread.java:16)
Caused by: java.sql.SQLException: ORA-00257: archiver error. Connect internal only, until freed.

Error 2:

Reason: the default log storage folder for data in hipex database table is full, so the log storage space needs to be increased

Database expansion personnel of the Fifth Institute: this business has a large volume of operations and a large number of logs. Previously, it was reserved for one week, but the space is not enough. Now it has been adjusted. If it is not available for three days, it is necessary to add disk space

Before adjustment:

After adjustment:

[Solved] IDEA javaweb web.xml File Error: Invalid content was found starting with element

Error reporting site restore

The header of the web.xml file is declared as follows:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">

The servlet elements reporting errors are as follows:

<servlet>
    <description>Enter Dispatcher</description>
    <servlet-name>xxxMVC</servlet-name>
    <servlet-class>com.xxx.web.servlet.RequestDispatcher</servlet-class>
    <load-on-startup>1</load-on-startup>
    <init-param>
        <param-name>xxxName</param-name>
        <param-value>xxxValue</param-value>
    </init-param>
</servlet>

Or maybe this

Error prompt in <init-param>the line, given the specific contents are as follows:

cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://xmlns.jcp.org/xml/ns/javaee":enabled, 
 "http://xmlns.jcp.org/xml/ns/javaee":async-supported, "http://xmlns.jcp.org/xml/ns/javaee":run-as, "http://xmlns.jcp.org/xml/ns/javaee":security-
 role-ref, "http://xmlns.jcp.org/xml/ns/javaee":multipart-config}' is expected.

Or the following error

Invalid content was found starting with element '{"http://xmlns.jcp.org/xml/ns/javaee":servlet-class}'. 
One of '{"http://xmlns.jcp.org/xml/ns/javaee":description, "http://xmlns.jcp.org/xml/ns/javaee":display-name, 
"http://xmlns.jcp.org/xml/ns/javaee":icon, "http://xmlns.jcp.org/xml/ns/javaee":servlet-name}' is expected.

The solution is as follows:

The init-paramelement to move the entire load-on-startupelement before, after modification, as follows:

<servlet>
    <description>Enter Dispatcher</description>
    <servlet-name>xxxMVC</servlet-name>
    <servlet-class>com.xxx.web.servlet.RequestDispatcher</servlet-class>
    <init-param>
        <param-name>xxxName</param-name>
        <param-value>xxxValue</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

Or

Error cause analysis (only for the first error):

Because it is the servletelement of error, so we try to find the corresponding xsd file, look at the error place in violation of which of the restrictions or constraints. According to the statement xml file header, we know that the corresponding xsd files are http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd, but from the web-app_3_1.xsdfile, we define the corresponding constraint did not find. However, we found the following code snippet:

<xsd:include schemaLocation="web-common_3_1.xsd"/>

So, we try to continue to web-common_3_1.xsdfind the corresponding limit or constraint, we find the following two snippets:

<xsd:element name="servlet" type="javaee:servletType"/>
<xsd:complexType name="servletType">
    ......
    <xsd:sequence>
        ......
        <xsd:element name="init-param"
                     type="javaee:param-valueType"
                     minOccurs="0"
                     maxOccurs="unbounded"/>
        <xsd:element name="load-on-startup"
                     type="javaee:load-on-startupType"
                     minOccurs="0">
        </xsd:element>
        ......
    </xsd:sequence>
    ......
</xsd:complexType>

From the above two pieces of code, we know that, for the servletelements, by <xsd:sequence>limiting the order of appearance of the child elements init-parammust appear load-on-startupbefore. At this point, we finally understand that the reason for the error is that we set the wrong order of the child elements.

 

How to Solve NPM install truffle error

NPM error reporting

In fact, if an error is reported, most of them are OK

Truffle cannot run after installation

Enter your own NPM package

You can find this location according to your location

If there is a truss, the installation is correct,

But NPM doesn’t add soft links to you

Add a soft link to your path

This is the location of the path

Select a location to add a soft link

Then verify

end

[Solved] –go_out: protoc-gen-go: Plugin failed with status code 1.

person. Proto file

//Specify the version
//Note that proto3 is written a bit differently than proto2
syntax = "proto3";
 
//package name, when go file is generated by protoc
option go_package="/address2";
 
//phone type
//the first field of the enum type must be 0
enum PhoneType {
    HOME = 0;
    WORK = 1;
}
 
//Phone
message Phone {
    PhoneType type = 1;
    string number = 2;
}
 
//Person
message Person {
    //The number after it indicates the identification number
    int32 id = 1;
    string name = 2;
    //repeated means repeatable
    //can have more than one phone, list type
    repeated Phone phones = 3;
repeated phones = 3; }
 
//contact book
message ContactBook {
    repeated Person persons = 1;
}

Explain in detail

rotoc -I=. /proto --go_out=. . /proto/*
protoc -I=$SRC_DIR --go_out=$DST_DIR $SRC_DIR/addressbook.proto
Result.
The file helloworld.pb.go is generated in the /proto directory
Here option go_package defines the path /proto to be imported, and -go_out also defines the path, so the final -go_out=.


Parameters
-I: directory of the source file (can be omitted)
--go_out: set the output directory of the generated Go code
The last argument indicates the source file


Grpc caused an error

If option go is not added to the proto file_package = “/proto”; This industry will report the following mistakes.

protoc-gen-go: unable to determine Go import path for "proto/helloworld.proto"

Please specify either:
        • a "go_package" option in the .proto source file, or
        • a "M" argument on the command line.

See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

--go_out: protoc-gen-go: Plugin failed with status code 1.

The reason is the compatibility of different versions of protocol Gen go.

Solution:

First, add option go to the proto file_package = “/proto”;

Second, the old version of proto Gen go is adopted, and the command is used to switch to V1 Version 3.2 go get – u GitHub com/golang/protobuf/protoc-gen- [email protected]

[Solved] Docker Container Start Error: iptables: No chain/target/match by that name

docker run -d -p 8081:8090 ccr.ccs.tencentyun.com/bk.io/cmdb-standalone:latest
b05c9135de5b721170fcb60aaedb455309e90011c3cf5a92cbe38ef4e893ad7e
docker: Error response from daemon: driver failed programming external connectivity on endpoint epic_joliot (a8047c4842e82f901dd545f0a971de11d84ce3ea7e0bfcd1e9ca59e57dc0a2ef): (iptables failed: iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 8081 -j DNAT –to-destination 172.17.0.2:8090 ! -i docker0: iptables: No chain/target/match by that name.

Just look at this error: iptables: No chain/target/match by that name, you can see that it is related to iptables
Reason (guess).
If the gateway is closed when the docker service is started again, then the docker management network will not operate the network management configuration (chain docker), and then the gateway is restarted, resulting in the docker network can not be configured for the new container network, that is, no network management operation rights, do reboot processing

Solution:

service docker restart
or
systemctl restart  docker

During the deployment of docker, the CentOS 7 server started and stopped the firewalld service due to port problems. In CentOS 7, firewalld was used instead of iptables. Iptables will also be used after firewalld is started, which belongs to the relationship of reference. Therefore, when docker runs, there is no docker chain in iptables list. After restarting docker engine service, it will be added to iptables list. (it is necessary to study the docker network in depth.)

Another way:

systemctl stop firewalld
or
systemctl stop iptables

Springboot + Maven multi module project startup Error: XxxService cannot be found

1. Problem background

Split springboot into multi module projects (split in different forms)

Split by hierarchy: one item for controller, one item for service, and one item for Dao (mapper).

Split by business: a business module is split into one project (including the controller, service, Dao, etc. of the business)

After the split is completed, start the original application and prompt application failed to start

2. Problem phenomenon

Description:

Field deptService in com.fanzyx.xx.controller.XxxController required a bean of type 'com.fanzyx.xx.service.XxxService' that could not be found.

The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.fanzyx.xx.service.XxxService' in your configuration.

3. Cause of problem

If the basic package path for scanning is not configured in the application, it will only be found under the current module

e.g.

@SpringBootApplication()
public class XxxApplication {
    public static void main(String[] args) {
        SpringApplication.run(XxxApplication.class,args);
    }
}

4. Solution

Add the scan base path in the @springbootapplication() annotation

// Multi-module projects need to be configured to scan for base packages, otherwise they will not be able to load entities from other modules
@SpringBootApplication(scanBasePackages = {"com.fanzyx.crane"})
public class XxxApplication {
    public static void main(String[] args) {
        SpringApplication.run(XxxApplication .class,args);
    }
}

[Solved] Cause: java.lang.ClassNotFoundException: Cannot find class: xxxx

Error message:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deptController': Unsatisfied dependency expressed through field 'deptService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deptServiceImpl': Unsatisfied dependency expressed through field 'deptDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deptDao' defined in file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\com\kangdamu\springcloud\dao\DeptDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
	at com.kangdamu.springcloud.DeptProvider_8001.main(DeptProvider_8001.java:10) [classes/:na]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deptServiceImpl': Unsatisfied dependency expressed through field 'deptDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deptDao' defined in file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\com\kangdamu\springcloud\dao\DeptDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	... 19 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'deptDao' defined in file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\com\kangdamu\springcloud\dao\DeptDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	... 32 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1247) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1167) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1500) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	... 43 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	... 56 common frames omitted
Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:523) ~[mybatis-spring-1.3.2.jar:1.3.2]
	at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:380) ~[mybatis-spring-1.3.2.jar:1.3.2]
	at org.mybatis.spring.SqlSessionFactoryBean.getObject(SqlSessionFactoryBean.java:547) ~[mybatis-spring-1.3.2.jar:1.3.2]
	at org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration.sqlSessionFactory(MybatisAutoConfiguration.java:153) ~[mybatis-spring-boot-autoconfigure-1.3.2.jar:1.3.2]
	at org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$c9b6813d.CGLIB$sqlSessionFactory$0(<generated>) ~[mybatis-spring-boot-autoconfigure-1.3.2.jar:1.3.2]
	at org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$c9b6813d$$FastClassBySpringCGLIB$$6c90d742.invoke(<generated>) ~[mybatis-spring-boot-autoconfigure-1.3.2.jar:1.3.2]
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	at org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$c9b6813d.sqlSessionFactory(<generated>) ~[mybatis-spring-boot-autoconfigure-1.3.2.jar:1.3.2]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_291]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_291]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_291]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_291]
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
	... 57 common frames omitted
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\JAVA代码学习\springboot\springcloud\springcloud-provider-dept-8001\target\classes\mybatis\mapper\DepetMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:92) ~[mybatis-3.4.6.jar:3.4.6]
	at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:521) ~[mybatis-spring-1.3.2.jar:1.3.2]
	... 70 common frames omitted
Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:118) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.builder.xml.XMLStatementBuilder.parseStatementNode(XMLStatementBuilder.java:68) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:135) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildStatementFromContext(XMLMapperBuilder.java:128) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:118) ~[mybatis-3.4.6.jar:3.4.6]
	... 72 common frames omitted
Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Dept'.  Cause: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:120) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116) ~[mybatis-3.4.6.jar:3.4.6]
	... 76 common frames omitted
Caused by: java.lang.ClassNotFoundException: Cannot find class: Dept
	at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:200) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.io.Resources.classForName(Resources.java:261) ~[mybatis-3.4.6.jar:3.4.6]
	at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116) ~[mybatis-3.4.6.jar:3.4.6]
	... 78 common frames omitted

modify

In application Add the path to scan user in YML:

mybatis:
  type-aliases-package: com.kangdamu.springcloud.pojo

Can be solved