[关闭]
@Pollux 2016-07-25T06:34:50.000000Z 字数 639 阅读 945

Exception

web常见问题



java.lang.ClassNotFoundException

Solution1 Java Build Path ===> remove tomcat then add Library add tomcat again
Solution2


java.lang.IllegalArgumentException

reason
resultMap 中没有这种类型

  1. <select id="selectAddressByPrimaryKey" parameterType="java.lang.String" resultMap="com.xt.pojo.address">
  2. select
  3. <include refid="Base_Column_List" />
  4. from ADDRESS
  5. where ID = #{id,jdbcType=VARCHAR}
  6. </select>

solution 应该把 resultMap 换成 resultType


pom.xml 报错

reason 有些jar包没有下载
solution maven install


tomcat 端口被占用

solution
方法一:把占用端口的进程kill掉
taskkill /F /IM javaw.exe /T

方法二:打开360流量防火墙 ===> 点击网络连接
结束进程 javaw.exe


添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注