SSM
1,failed to load class org.slf4j.impl
没导入logback jar包
2.field dept_id doesnt have a default
navicat表中没有将主键设置为自增
3.error creating bean with name sqlSessionFactory defined in class path
mybatis配置中没有指明路径。
4.Invalid test class '': 1. No runnable methods
上面没有导入正确的import:org.junit.test
5.一个或多个筛选器启动失败
在project structure的lib目录下没有导入jar包
6、idea中Test were not found in module use module instead或者(no test were found)
7,class path resource [applicationContext.xml]; nested exception is org.springframework.beans.factory.
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
8、WEB-INF下的一般jsp无法直接访问,但可以重定向访问
9、Error:java:java.lang.ExceptionInInitializerError:com.sun.tools.javac.code.TypeTags
lombok版本过低,换新版
10.错误“ Java:不支持发行版本5”
点setting下的Build,Execution,Deployment下的java compiler改成9.0
11.添加web框架支持,点项目名,右击,Add Framework support.
mvn打包报错You must specify a valid lifecycle phase or a goal in the format
双击install
12.创建web.xml以及改4.0版本等,在project structure的module的web的第一行蓝色去掉再修改路径后面加web.xml,以及加WEB-INF也在这里点右侧笔即可,显示jsp也是这里,双击点下面的路径即可。
13.A query was run and no Result Maps were found for the Mapped Statement
resultType的路径是否写对或没加
14查看电脑的ip地址以及端口号
cmd中地址:ipconfig 端口号:netstat -an
15.ResponseBody返回的是字符,json等格式,
16,Unable to start web server; nested exception is org.springframework.context.Application
点击clean,重启项目
17.failed to load property source
格式不对
18,public key retrieval is not allowed
最简单的解决方法是在连接后面添加 allowPublicKeyRetrieval=true
19、HttpMessageNotWritableException: No converter found for return value of type:。。。
加上get set 方法
20、java.lang.exceptionintializeerror com. sun.tools.javac.code.typetags 错误,无效的发行源版13
21、请问写注解时为什么没有我要的注解 Autowired,没有提示呢
因为没导入依赖
org.springframework
spring-webmvc
5.1.19.RELEASE
22、classnotfoundexception org.yaml.snakeyaml.loaderoption
导入依赖
org.yaml
snakeyaml
1.23
???
23、No serializer found for class
没有get set方法
24、No converter found for return value of type
添加以下jackson依赖:
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.7'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.7'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.7'
25、Invalid bound statement (not found)
查看mapper.xml路径,绑定接口名是否一致
26、Failed to configure a DataSource: url attribute is not specified and no embedd
27、maven进行install时出现Fatal error compiling错误
升级lombok版本,
28、rabbitmq和erl卸载后有残留文件,应该先删除,才能再次安装
29、Nacos 启动报错[db-load-error]load jdbc.properties error
解决:
在安装Nacos的目录下找到startup.cmd。用记事本或者Notepad++打开。
将26行的set MODE="cluster"修改为set MODE="standalone"。这里就是将默认启动集群改为独立的启动。再次启动startup.cmd。
30、springcloud的注册Nocos配置中心失败:Could not resolve placeholder ‘config.info‘ in value “${config.info}
解决: 不能写成yml应该写yaml
31、Seata-server启动闪退问题
解决: 就在当前文件的bin目录下执行cmd 运行seate-server.bat文件就能知道什么错误
解决: 原来mysql8.0的要在lib下添加mysql-connector-java-8.0.22 包
32、连接redis时遇到Caused by: io.netty.channel.ConnectTimeoutException: connection timed out: /问题
查看防火墙是否开启,linux关闭防火墙