2015年6月6日

摘要: 先要知道是哪个端口被占用了,然后在win+R之后粘贴入下面代码,80替换为想要查看的端口,查看的结果最后为一个PID,记住这个PID,然后打开任务管理器,在上方工具栏中--查看--选择列,勾选PID,然后在找到之前记录的PID,对应的进程,右击查看文件位置,点开后就可以看到具体哪个文件占用这个进程了... 阅读全文

posted @ 2015-06-06 14:30 Mr.ning 阅读(1185) 评论(0) 推荐(0) 编辑

2015年5月29日

摘要: 如果applicationContext.xml文件放置在src下面的的时候使用jUint测试的时候编写的路径应该是这样的: @Test public void testFindByPage() { ApplicationContext ctx = new ClassPathX... 阅读全文

posted @ 2015-05-29 14:21 Mr.ning 阅读(2622) 评论(0) 推荐(0) 编辑

2015年5月28日

摘要: 打开eclipse,点击空白处,右键可以看到import>general>existing projects into workspace>next>选择你的myeclipse web项目,最后finish.如果有错,大概是出现的jdk、或编码错误、或jar包问题,改正完毕后;打开widnow>sh... 阅读全文

posted @ 2015-05-28 13:32 Mr.ning 阅读(1296) 评论(0) 推荐(0) 编辑

2015年5月27日

摘要: 这篇博文的目的尝试搭建一个完整的SSH框架项目。给以后的自己,也给别人一个参考。读博文前应该注意:本文提纲:本文通过一个用户注册的实例讲解SSH的整合。创建Struts项目,整合Hibernate,整合Spring。最后总结如何熟练创建SSH项目。仅是创建SSH项目,对于其他的扩展例如Struts的... 阅读全文

posted @ 2015-05-27 09:55 Mr.ning 阅读(1114) 评论(0) 推荐(0) 编辑

2015年5月26日

摘要: 想必用过Spring的程序员们都有这样的感觉,Spring把逻辑层封装的太完美了(个人感觉View层封装的不是很好)。以至于有的初学者都不知道Spring配置文件的意思,就拿来用了。所以今天我给大家详细解释一下Spring的applicationContext.xml文件。Ok,还是通过代码加注释的... 阅读全文

posted @ 2015-05-26 16:28 Mr.ning 阅读(3600) 评论(0) 推荐(0) 编辑

摘要: 这里是控制台的报错信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [ap... 阅读全文

posted @ 2015-05-26 15:50 Mr.ning 阅读(3462) 评论(0) 推荐(0) 编辑

摘要: (一)工作环境准备: JDK 1.7 EclipseKepler Apache Tomcat 8.0(二)在Eclipse中新建Maven工程,在Archetype类型中,选择“maven-archetype-webapp”。(三)配置pom.xml。[html]view plai... 阅读全文

posted @ 2015-05-26 10:35 Mr.ning 阅读(878) 评论(1) 推荐(0) 编辑

2015年5月24日

摘要: tomcat7 jdk7myeclipse2014 部署完成后,访问页面报错struts.xml文件内容: /WEB-INF/test/hello.jsp java.lang.NoSuchMethodExceptio... 阅读全文

posted @ 2015-05-24 14:44 Mr.ning 阅读(304) 评论(1) 推荐(0) 编辑

2015年5月22日

摘要: 提示说是applicationcontext文件中的jdbcUrl信息错误,可是xml文件中的url再三确认是没有错的,不知道怎么回事? 最下面贴上applicationContext.xml中的数据源配置信息org.springframework.beans.factory.BeanCreatio... 阅读全文

posted @ 2015-05-22 14:02 Mr.ning 阅读(664) 评论(4) 推荐(0) 编辑

2015年5月10日

摘要: 上面一堆tomcat启动的提示信息省略掉,下面是报错的具体信息:org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 at org.apache.tomcat... 阅读全文

posted @ 2015-05-10 23:57 Mr.ning 阅读(23960) 评论(8) 推荐(2) 编辑

2015年5月5日

摘要: SQL 1:select segment_name,partition_name,tablespace_name from --显示出表的主键的表空间是:SYSTEM--以下是生成删除主键约束的脚本select 'alter table '||owner||'.'||table_name||' dr... 阅读全文

posted @ 2015-05-05 22:31 Mr.ning 阅读(1881) 评论(0) 推荐(0) 编辑