会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
北极的大企鹅
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
45
46
47
48
49
50
51
52
下一页
2016年11月23日
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable t
摘要: spring与hibernate整合然后出现如下错误: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class p
阅读全文
posted @ 2016-11-23 18:02 北极的大企鹅
阅读(1422)
评论(0)
推荐(0)
2016年11月12日
疯狂安装oracle 12c,此版本没有scott这个用户
摘要: 今天要学习oracle,然后寻思下个吧,结果出现了很多问题,在此分享一下,搞疯了,太痛苦了,学的教程是用的 Oracle 11g,我去官网下载的Oracle 12g,文件很大,好不容易装好了,寻思就这么用吧,结果问题百出,总结下: 1、下载软件,请到官网下载,因为需要注册一个用户,所以请先拥有一个有
阅读全文
posted @ 2016-11-12 20:51 北极的大企鹅
阅读(6342)
评论(0)
推荐(2)
2016年11月10日
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liuyang.JDbCTemplate.PersonDao]: No default constructor fo
摘要: 错误是说我的配置文件中没有对构造函数进行配置,所以找不到构造函数,在配置文件application.xml中加入如下句子: <bean id="personDao" class="com.liuyang.JDbCTemplate.PersonDao"> <constructor-arg index=
阅读全文
posted @ 2016-11-10 15:35 北极的大企鹅
阅读(1826)
评论(0)
推荐(0)
Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'dataSource' of bean class [com.liuyang.jdbc.PersonDao]: No property 'dataSource
摘要: 这个错误是说我的启动失败了。这类问题要从配置文件中开始找原因,我用的是spring框架,所以我从application.中找的原因 然后对比路径,对比文件的命名和id,都没有问题,为什么会在启动的时候找不到dataSource,我想到应该是少包,但是,找寻发现包也没有问题。 最后发现是这里错了 这里
阅读全文
posted @ 2016-11-10 14:40 北极的大企鹅
阅读(5099)
评论(0)
推荐(0)
Can not issue data manipulation statements with executeQuery().
摘要: 这个错误提示是说无法发行sql语句到指定的位置 就是如图的两端代码的问题,excuteQuery是查询语句,而我要调用的是更新的语句,所以这样数据库很为难到底要干嘛,我实际的操作是要更新数据,所以把 这里是重点:::!!! executeQurery()改成excuteUpdate() 错误就改正了
阅读全文
posted @ 2016-11-10 14:29 北极的大企鹅
阅读(44278)
评论(2)
推荐(2)
2016年11月9日
Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut aaa
摘要: 这个错误是说,找不到这个注释: 解决方案: 1、更改自己本机的jdk版本(我的更改了无效): 在工程选择框内点击右键 >build path >Library >add Library 选择JRE System Library >next 就可以更改了。 2、更改aspectjweaver.ja的版
阅读全文
posted @ 2016-11-09 20:38 北极的大企鹅
阅读(2360)
评论(0)
推荐(0)
2016年11月4日
VMware + LInux + Xshell 连接环境设置(心得体会)
摘要: 准备好VMware软件,和Linux 和xshell三款软件,下载和安装好,这里VMware是十二,Linux是CentOs 6 ,xshell是5 其实没有什么区别只要版本兼容就行,我们就可以实现远程访问虚拟服务器的连接方式 VMware 安装好linux后,设置这个界面 它在虚拟机菜单下 网络连
阅读全文
posted @ 2016-11-04 15:16 北极的大企鹅
阅读(19730)
评论(0)
推荐(1)
2016年11月3日
对于Serializable id类型的数据的测试
摘要: 今天编写了一个这样的例子,然后进行了Junit测试,但是发现类型总是不匹配,最后测出如下 public <T> void deleteEntry(Class<T> t, Serializable id) { Session session = sessionFactory.openSession()
阅读全文
posted @ 2016-11-03 17:39 北极的大企鹅
阅读(664)
评论(0)
推荐(0)
2016年10月30日
SessionCacheTest03.testLoad Unrooted Tests initializationError
摘要: 这个错误主要是没有加载@Test这个标签,就是把其转化为一个juit测试的类。增加之后就没有问题了,当然还有很多人说是自己的Juit的版本问题,那就改下版本,还有说是没有加载两个类包,为了完整我就把包也加上了导入hamcrest-core-1.3.jar即可。 如果还报错,再导入hamcrest-l
阅读全文
posted @ 2016-10-30 19:35 北极的大企鹅
阅读(357)
评论(0)
推荐(0)
2016年10月28日
java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing,
摘要: 缺少一个java包,然后我在这个网址找到了http://central.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar,请点击这个网站下载,然后放在项目所在的包中,然后add 一下就可以了
阅读全文
posted @ 2016-10-28 16:12 北极的大企鹅
阅读(1321)
评论(0)
推荐(0)
上一页
1
···
45
46
47
48
49
50
51
52
下一页
公告
阅读 -
79万