![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
菜鸟hyn
这个作者很懒,什么都没留下…
展开
-
Caused by: java.lang.ClassNotFoundException: HttpServletRequest解决方法
项目启动报错,没有导入HttpServletRequest的jar包,右击项目名-》build path—》configure build path—》add libraries —》Server Runtime—》 Apache Tomcatv8.5另可参照博文:http://www.cnblogs.com/qrlozte/p/3495604.html...转载 2018-11-14 13:43:24 · 4721 阅读 · 2 评论 -
PLSQL远程连接服务器的Oracle数据库
项目部署在Linux服务器上,使用plsql远程连接服务器上的Oracle数据库:在tnsnames.ora文件中添加内容如下:第一个红框表示数据库定义远程服务器的在本地主机名(随意输入)第二个红框表示远程服务器ip地址第三个红框表示远程服务器的数据库实例名测试能否打开,如若不能,修改plsql配置:工具------>首选项登录仍然不能连接,报错ORA-1...转载 2019-08-05 20:06:59 · 980 阅读 · 0 评论 -
jsp前台传参到后台乱码
背景一:ajax请求后台action,在action中获取参数乱码解决方法:Ajax请求时加入代码contentType: "application/x-www-form-urlencoded; charset=utf-8"例如: $.ajax({ type: 'POST', url: "${ctx}/appr...原创 2019-07-29 18:28:37 · 262 阅读 · 0 评论 -
随笔(三)
1、jsp页面id为whir$t3015_f3060的元素添加onclick属性:$("#whir\\\$t3015_f3060").attr('onclick', 'WdatePicker({dateFmt:"yyyy-MM-dd"});');2、jsp页面class为computedate的元素添加click点击事件,class为computedate的元素已有click点击事件,这...原创 2019-06-14 18:07:34 · 114 阅读 · 0 评论 -
jsp报错missing ) after argument list!!!
jsp中写了一行代码:$("#whir\\\$t_leave_begindate").attr('onclick', 'WdatePicker({el:'d122'});');一直报错,经排查发现是因为没有将'd122'的单引号转义,改为$("#whir\\\$t_leave_begindate").attr('onclick', 'WdatePicker({el:\'d122\'});');后...原创 2019-06-14 17:51:33 · 657 阅读 · 0 评论 -
随笔(二)
1、在iframe中获取父元素:window.parent.document.getElementById("whir$t_leave_f3837")2、表单中有相同class的td,获取第一个td的值:$(".listTableLineLastTD_").eq(0).text()3、在iframe中给父页面的元素赋值:window.parent.document.get...原创 2019-06-02 05:14:44 · 176 阅读 · 0 评论 -
随笔(一)
1、子页面获取父页面元素的值var budgetSection = opener.$("input[name='xxx']").val();opener 属性是一个可读可写的属性,可返回对创建该窗口的 Window 对象的引用。2、子页面向父页面元素赋值opener.$("input[name='xxx']").value=传递值的变量;3、Ajax的async:默认是...原创 2019-05-30 17:04:42 · 154 阅读 · 0 评论 -
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1!!!
org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hib...原创 2019-04-03 16:33:01 · 769 阅读 · 0 评论 -
Write operations are not allowed in read-only mode (FlushMode.MANUAL)!!!
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' mar...原创 2019-04-03 15:49:24 · 298 阅读 · 0 评论 -
Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister!!!
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; neste...原创 2019-04-03 13:28:01 · 613 阅读 · 0 评论 -
Could not locate field nor getter method for property!!!
在SSH项目中报错如下:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method...原创 2019-03-29 13:12:31 · 959 阅读 · 0 评论 -
文件上传
文件上传将本地文件通过流的形式上传到服务器上。文件上传技术JspSmartUploadjspSmartUpload组件是应用JSP进行B/S程序开发过程中经常使用到的上传下载组件,使用简单,方便。现在又为其加上了下载中文名字的文件的支持。FileUpload是Apache commons下面的一个子项目,用来实现Java环境下面的文件上传功能,与常见的SmartUploa...原创 2019-04-02 16:39:38 · 878 阅读 · 0 评论 -
jboss
第一次接触jboss,在此做一个基本安装及使用记录在这个地方启动项目这个路径下是缓存,一般在开发过程中如果要清除缓存的话就把上图红框中的四个文件删除即可,其中这个路径下的log文件是日志文件。这个路径下红框1是开发主要的文件都在这个defaultroot下面,红框2是配置数据库的地方。这个地方是jar包所在位置,将dog-3.1.jar包放入lib下把Whi...原创 2019-03-27 13:50:39 · 590 阅读 · 0 评论 -
org.hibernate.MappingException: Unknown entity: com.ithou.crm.domain.SaleVisit!!!
org.springframework.orm.hibernate5.HibernateSystemException: Unknown entity: com.ithou.crm.domain.SaleVisit; nested exception is org.hibernate.MappingException: Unknown entity: com.ithou.crm.domain.Sa...原创 2019-04-04 15:37:00 · 560 阅读 · 0 评论 -
Invalid bound statement (not found)
在做ssm项目时,遇到错误如下:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.taotao.mapper.TestMapper.queryNow at org.apache.ibatis.binding.MapperMethod$SqlCommand.<in...原创 2019-03-18 16:52:00 · 350 阅读 · 0 评论 -
Unable to compile class for JSP
开发环境:jdk:1.8,web服务器是Tomcat8.5,maven是3.6,搭建好环境后输入命令tomcat:run,然后就报org.apache.jasper.JasperException: Unable to compile class for JSP错误1、在pom文件中加上servlet-api、jsp-api包,为了防止包冲突,需要把<scope>改成prov...原创 2019-03-05 16:47:14 · 573 阅读 · 0 评论 -
maven启动端口号被占用!!!
maven启动项目是时,报错tomcat端口号8080被占用:java.net.BindException: Address already in use: JVM_Bind <null>:8080at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)at org.apache.coyote.ht...原创 2019-03-05 15:45:09 · 554 阅读 · 1 评论 -
安装SVN端口号被占用!!!
在本机安装SVN服务端时发现443端口号被占用:使用netstat -ano命令在cmd中查看开启的端口号发现443端口的PID是6928使用tasklist|findstr “6928”发现是vmware-hostd.exe占用了该端口号所以将端口号443修改为备用端口号8443...原创 2019-03-05 10:11:59 · 2255 阅读 · 0 评论 -
错误:spring注解出现空指针异常
在初始学习Spring AOP 注解时,一直报错空指针异常在长时间查看代码以及查找帖子无果后,发现单元测试Test包导的是如下包:即错误包应导如下包:切记:导包要导对 !!!!!!...原创 2019-02-20 13:01:37 · 609 阅读 · 0 评论