Spring异常

Java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException

1
2
3
4
5
6
<!-- change jackson-databind version to 2.9.4 -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.4</version>
</dependency>

mysql运行报The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time z

1
2
show variables like "%time_zone"
set global time_zone="+8:00"

or

1
2
3
4
5
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.39</version>
</dependency>

idea Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource

https://blog.csdn.net/u010648555/article/details/70880425
方案1:不将xml放到src目录下面,将xxxMapper.xml放到Maven构建的resource目录下面!
方案2:在Maven的pom文件中,添加下面代码:

1
2
3
4
5
6
7
8
9
10
11
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>