![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java Web
薛定谔饿
人生的辛酸苦辣都是一种历练。
展开
-
Project facet Java version 1.8 is not supported.项目报红叉
转载别人的点击查看转载 2018-06-30 18:11:17 · 124 阅读 · 0 评论 -
Publishing to tomcat v7.0 Server at localhost…' has encountered an error
错误1:Publishing to tomcat v7.0 Server at localhost…' has encountered an error错误2:java.lang.IllegalArgumentException: Document base D:\apache-tomcat-7.0.61\webapps\xxxx does no错误1和错误2都是同一个原因,出在Serve...原创 2018-08-05 17:16:33 · 3147 阅读 · 0 评论 -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webSocketHan
错误: 解决:服务器改为Tomcat8原创 2018-08-28 20:41:20 · 197 阅读 · 0 评论 -
The Apache Tomcat installation at this directory is version 8.5.33. A Tomcat 8.0 installation is ex
eclipse配置Tomcat是报错:The Apache Tomcat installation at this directory is version 8.5.33. A Tomcat 8.0 installation is......解决:1、来到Tomcat的解压路径。2、用解压软件打开catalina.jar3、打开org\apache\catalina\util...原创 2018-08-29 00:20:56 · 1514 阅读 · 0 评论 -
intelliJ idea新建maven项目没有resource文件夹
如图:intellij idea刚装的时候,创建maven项目是默认没有resource文件夹的 解决:1、点击File-->project structure...2、Modules-->Sources-->main右键-->New Folder, 输入resources 3、选择resources右键,点击Resources(选择...原创 2018-09-04 11:30:28 · 30936 阅读 · 13 评论 -
advised by org.springframework.transaction.interceptor.TransactionInterceptor.invoke(org.aopallian
原因:ssh注解开发,applicationContext.xml文件中配置的组件扫描中少了一段代码: use-default-filters="false"例如:<context:component-scan base-package="com.lfg.bos"/>改为:<context:component-scan base-package="com.lfg.bo...原创 2018-08-29 23:57:37 · 1826 阅读 · 2 评论 -
xxx cannot be resolved to a type(eclipse报错 cannot be resolved to a type)
解决:project-->clean-->clean projects....-->勾选报错的项目,点击OK(clean一下项目:eclipse没有自动编译源代码,导致类型找不到)原创 2018-09-04 20:46:55 · 1176 阅读 · 0 评论 -
intellij idea创建maven项目时很慢
问题:解决:在创建项目的时候添加archetypeCatalog=internal参数原创 2018-09-04 21:28:46 · 228 阅读 · 0 评论 -
Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires
描述:eclipse启动Tomcat时报Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time....错误这是Tomcat启动超时了。解决:1、双击视图中的Tomcat视图打开如图所示界面,点击Timeouts修改star...原创 2018-08-30 15:49:10 · 2854 阅读 · 0 评论 -
Oracle报:nested exception is java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在
不是表或字段大小写写错,就是用户权限不够。权限不够的话:给用户添加权限,sql如下:例如:给scott用户添加删除的权限:grant delete any table to scott;原创 2018-07-15 10:13:13 · 4713 阅读 · 0 评论 -
异常:The JSP specification requires that an attribute name is preceded by whitespace
页面:后台:解决:resManage.jsp第23行62列缺少空格(元素属性缺少空格)原创 2018-07-15 00:56:10 · 406 阅读 · 0 评论 -
Java Web项目登录报Session Error
添加下面红色代码即可,注意:添加代码后,格式化一下代码。<servlet> <servlet-name>dwr-invoker</servlet-name> <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> <init-param&g...原创 2018-06-26 23:18:55 · 6276 阅读 · 2 评论 -
fckeditor报错
因为fckeditor的bug,所以会出现一些错误。在eclipse中报错的话,打开在window-->Preference-->Validation 然后disable All,应用,确定即可。原创 2018-06-28 11:35:26 · 226 阅读 · 0 评论 -
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'XXX’in 'field list'错误
实体映射错误,即映射的名称和数据库表里的名称不一致。修改相应实体类的hbm.xml文件的XXX映射名和数据库列名一样即可;若是注解方式的,道理也一样:修改@JoinColumn(name = "xx")即可。...原创 2018-06-28 13:59:44 · 16603 阅读 · 0 评论 -
sqlplus不是内部或外部命令
在虚拟机中安装Oracle数据库,在主机中连接时,会报sqlplus不是内部或外部命令....错误;这是因为本机没有安装,这时需要解压以下两个文件,配置本地环境。地址:https://pan.baidu.com/s/1lz7ycKG820I8fN4VZOlYMA这是64位。解压后,把下面两个文件地址添加到path路劲下(就像添加JDK一样)。...原创 2018-07-11 01:23:19 · 3688 阅读 · 0 评论 -
Oracle sqldeveloper连接错误:ID错误:the network adapter could not establish the connection
一般是主机名错误。解决:win+r-->cmd-->netstat -na查看如果若有:TCP 127.0.0.1:1521 0.0.0.0:0 LISTENING则把主机名改为127.0.0.1如果是虚拟机连接的话,则肯定可以找到:TCP 虚拟机IP:1521 0.0.0.0:0 LISTENING则把主机名改为虚拟机IP。...原创 2018-07-13 00:36:10 · 4964 阅读 · 0 评论 -
第十四天.response
HttpServletRespons 教学导航教学目标 案例一、完成文件下载 案例二、生成验证码(了解) 教学方法 1.HttpServletResponse概述我们在创建Servlet时会覆盖service()方法,或doGet()/doPost(),这些方法都有两个参数,一个为代表请求的request和代表响应response。service方法中的response的类型是Ser...原创 2018-07-08 01:03:21 · 136 阅读 · 0 评论 -
解决Cannot create JDBC driver of class '' for connect URL 'null'问题
解决:启动项目后,修改Tomcat下的conf下的server.xml如下(注意用户名,密码,url),后重启服务器(restart)。 <Context docBase="E:\Tomcat\apache-tomcat-7.0.42\wtpwebapps\jdyd" path="/jdyd" debug="5" crossContext="true" reloadable="true" s..原创 2018-07-15 00:37:04 · 14962 阅读 · 0 评论 -
javax.el.ELException: Failed to parse the expression 错误
问题:报contains invalid expression(s): javax.el.ELException: Failed to parse the expression 错误解决:这是el书写错误,一般是里面含有关键字例:#{AListBean.maxPage>0&&ALBean.aid!=null&&ALBean.super}super就是关键字。改...原创 2018-07-15 00:50:30 · 2074 阅读 · 0 评论 -
pom.xml文件错误:
错误:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta.......解决:选中项目,刷新项目(F5),不行多刷新几次。原创 2018-09-12 09:24:23 · 314 阅读 · 0 评论