查看上方目录或直接使用Ctrl+F直接搜索你要查询的问题部分关键字
直接使用Ctrl+F直接搜索你要查询的问题部分关键字或查看上方目录
adress already in use,JVM_BIND:8080
- 在启动tomcat时看到如下的错误
- adress already in use,JVM_BIND:8080
产生原因
- 重复启动tomcat造成8080端口的冲突
- 可能其他软件占用了8080端口
解决方案- 启动原因: 打开/tomcat/bin目录,通过命令强制关闭它
- 其他软件: 打开server.xml,在65行修改tomcat端口
建议修改为8088,8089,修改后要重启tomcat才生效
Initializing Spring root WebApplicationContext
我产生的原因是因为oracle的服务没有开启,导致连接不上数据库一直卡死在这里。
多数情况下是连接数据库时出现问题
将Spring对象等环境注入到Tomcat容器中,一直卡在这里正是说明mybatis.xml存在问题,但没有报xml的书写问题,说明配置文件没有问题,那就考虑一下数据库是否可以正常连接了。
The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler
产生这个错误的原因有很多,可能有路径,配置语法不对等。
下面写我已经遇到产生这个错误的原因:
- 粗心大意导包错误,使得DispatcherServlet 找不到需要的handlerRequest
–正确的包:
import org.springframework.web.servlet.mvc.Controller;
import org.springframework.web.servlet.ModelAndView;
–错误的包:
import org.springframework.web.portlet.mvc.Controller;
import org.springframework.web.portlet.ModelAndView;
包的路径是不是很像。各位海燕,长点心。
Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource]
Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property ‘dataSource’: no matching editors or conversion strategy found
意思就是不能把DataSource的参数值,用String参数赋值
产生的原因:在我的beans.xml配置中写错了
应该是ref引用已经写好的bean.id=dataSource,不是使用value赋值 错的: <property name="dataSource" value="dataSource"/> 对的: <property name="dataSource" ref="dataSource"/>
ASM ClassReader failed to parse class file
ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn’t supported yet
原因是我用的spring版本是3.x的,不支持java1.8版本,换成1.7的即可。
步骤:1.右键项目->Properties->Java Complier改java的版本
2.右键项目->Properties->Project Facets 找到java更改版本
Error parsing Mapper XML.
MyBatis实体类映射的xml解析错误
Error resolving class.Could not resolve type alias.Cannot find class
映射的XML中增删改查的一个属性parameterType 赋值错误。找到对应的实体类造成的。检查路径和类名更改即可
The specified JRE installation does not exist
Eclipse菜单栏下window –>preferences –>Server –> Runtime Environment –>Edit –>JRE
然后选中你要用的jre环境,保存就OK了