- 博客(6)
- 收藏
- 关注
原创 升级Struts2.5后使用DMI动态方法调用遇到问题
转自:http://www.lvhongqiang.com/blog429.html问题:升级Struts2.5后使用DMI动态方法调用报错,method 找不到。源码:struts.xml <action name="json_*_*" class="{1}Action" method="{2}"> <result name="success" type="j
2016-12-28 23:15:59
1256
原创 Java中的多态调用问题,下面代码输出是什么?
问题:下面代码输出是什么?public class Test3 { public static void main(String[] args) { AAA a = new BBB(); BBB b = new BBB(); System.out.println(a.show(b));//B and A } } class AAA {
2016-12-28 23:12:01
345
原创 AngularJS 2 中如何实现ng-bind-html
问题:在AngularJS 1.x 中可以使用ng-bind-html来插入一段html代码,相当于struts2 标签的escape属性。但是AngularJS 2中取消了ng-bind-html,当项目中确实有需要动态插入html代码的时候我们该怎么做呢?解决方法: 使用[innerHtml]代替ng-bind-html。 innerHtml属性,用于设置标签内的html,[innerHtml]
2016-12-15 00:10:34
5419
原创 hibernate xxx is not mapped 错误原因及解决方法
错误:“hibernate xxx is not mapped”原因:xxx.hbm.xml文件没有发布到target相应目录中。解决方法:pom.xml中,节点内添加如下代码: <sourceDirectory>src/main/java</sourceDirectory> <resources> <resource> <
2016-12-15 00:07:48
1274
转载 基于jQuery slide插件的轮播大图,带标题及简介,附源码
转自:哈喽吕小强的技术博 - http://www.lvhongqiang.com/blog421.html 1、首先看效果 演示地址:http://www.lvhongqiang.com/blog421.html 2、源码 1)index.html html lang="en"> head> met
2015-12-08 15:29:50
3107
原创 AngularJS Documents 官方英文文档
AngularJS是个好东西,尤其在写交互性需求较多的页面时,用于移动端html5开发也很有用。 但是很遗憾,被墙了,查api文档很麻烦。 好在GitHub上开源了其全部文档,直接check下来,结果发现直接双击doc下的index.html是看不了的。 AngularJS是很高大上的东西,帮助文档自然不会是简单的静态页面,文档正文是需要去服务器动态获取的。没办法,我只好自己搭个服务器了,既然搭了,顺便共享一下
2015-12-08 10:24:26
3277
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅