摘要:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven surefire plugin:2.10:test (default test) on project web_nanchang: There are test failure 阅读全文
摘要:
eclipse不像MyEclipse默认将项目部署到tomcat安装目录下的webapps中,而默认部署到工作目录下 为了使项目默认部署到tomcat安装目录下的webapps中,show view— servers— 找到需要修改的tomcat— 右击 ①停止eclipse内的Tomcat服务器( 阅读全文
摘要:
eclipse maven 项目 使用maven build ,clean 等命令均无反应,控制台无任何输出 1、打开Window Preferences Java Installed JREs 2、选择编辑installed JREs 3、在Default VM arguments行加入下面的值 阅读全文
摘要:
` String hql = "from SysUser o join o.set where owner_id = :newName"; Query query = this.getCurrentSession().createQuery(hql); query.setParameter(0, u 阅读全文
摘要:
文章一: 1.用hql语句 ` String hql="select student.id, student.name ,class.name from student映射实体类名 as student , class映射实体类名 as class where class.id = student. 阅读全文
摘要:
要理解为什么不用注入,首先就清楚注入的目的是什么?如果不注入,在程序中要使用某个类对象的方法,则需要去new一个对象。然后我们调用其中的方法,众所周知“程序=算法+数据”。不失一般性,在面向对象开发中,类一般有两种,一种是功能类的,主要是完成一些业务操作。一种是数据类,主要是存储数据,比如POJO。 阅读全文
摘要:
http://blog.csdn.net/xybelieve1990/article/details/52043127 阅读全文
摘要:
javax.servlet javax.servlet api 3.1.0 阅读全文
摘要:
解决方案是在Prefernces Maven user Settings 里面点击Update settings 然后就好了。因为默认你配置settings.xml指向你的类库的时候,可能是没有加载进来吧,所以需要update一下。 你可以试试看这种方法行不行。 如果不行那可能就是jar包不全了 阅读全文
摘要:
eclipse 使用一段时间后,有时会因为一些故障自己就莫名奇妙的关闭了,再打开时有时没有问题,有时有会提示错误 Workspace Unavailable: Workspace in use or cannot be created, choose a different one. 原因:出现这种 阅读全文