![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误记录
千年炆
这个作者很懒,什么都没留下…
展开
-
ServiceRegistryBuilder无法解析为类型
今天开始写新项目,在测试Hibernate时出现ServiceRegistryBuilder这个类无法解析,百度后发现Hibernate4.3之后已经没有了org.hibernate.service.ServiceRegistryBuilder这个类,已经被弃用了 。需要使用新的StandardServiceRegistryBuilder类,下面是StandardServiceRegist...原创 2018-05-10 10:05:57 · 892 阅读 · 0 评论 -
Struts2 jsp访问action出现404错误
在测试环境时发现一个奇怪的bug,A类的save方法可以调用而update方法不能调用。一开始以为自己写错了,检查了半天也没发现问题,后来发现Struts2 2.5版本已经默认开启严格的方法调用Strict Method Invocation。 什么是严格的方法调用? 在使用动态方法绑定调用action时,理论上可以通过修改html代码调用action的任何方法,这就会出现安全...原创 2018-05-10 12:24:30 · 2132 阅读 · 0 评论 -
Invalid byte tag in constant pool: 19
今天把以前一个项目的包更新了下,出现了如下错误: Invalid byte tag in constant pool: 19 最后发现是log4j-api包的2.11.1版本用到了Java9的新特性,其它包不支持。我试着把版本降到2.9.0,成功解决。(这个问题不一定是log4j,至于是哪个包冲突请细看错误日志)...原创 2018-09-20 17:47:45 · 30020 阅读 · 8 评论 -
Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not Set
今天把以前一个项目的包更新了下,出现了如下错误: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not Set 是新版Hibernate需要设置方言,在hibernate.cfg.xml中增加<property name="dialect">org.hibernate.dialec...原创 2018-09-20 17:55:20 · 3026 阅读 · 0 评论