上一页 1 ··· 5 6 7 8 9
摘要: mybatis <insert id="InsertCourse"> insert into training_course(type_id,course_title,course_summary,coverimg_url,course_content,message_type, create_da 阅读全文
posted @ 2017-11-18 12:32 Yusco 阅读(945) 评论(0) 推荐(0) 编辑
摘要: 一.非Ioc方式 这种方式主要是利用了com.opensymphony.xwork2.ActionContext类以及org.apache.struts2.ServletActionContext类,具体的方法如下所示。 获得request对象: 1).HttpServletRequest requ 阅读全文
posted @ 2017-11-06 11:02 Yusco 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 方法一:在初始化时保存ApplicationContext对象代码:ApplicationContext ac = new FileSystemXmlApplicationContext("applicationContext.xml");ac.getBean("beanId");说明:这种方式适用 阅读全文
posted @ 2017-11-06 11:01 Yusco 阅读(311) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-03 17:09 Yusco 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 方法一: alert(result); result返回 {"rows":[{"countryId":"","id":"1","value":"A"},{"countryId":"","id":"2","value":"B"},{"countryId":"","id":" 阅读全文
posted @ 2017-10-27 14:48 Yusco 阅读(120) 评论(0) 推荐(0) 编辑
摘要: action层 js alert(result); result返回的是[{"countryId":"","id":"1","value":"A"},{"countryId":"","id":"2","value":"B"},{"countryId":"","id":"3",&q 阅读全文
posted @ 2017-10-27 14:40 Yusco 阅读(178) 评论(0) 推荐(0) 编辑
摘要: static的用法:修鉓符,修鉓属性,方法,代码块a1.修鉓属性:该属性是一个静态的属性,叫类的成员(没有static修鉓的属性叫实例的成员,调用时用:对象名.属性),调用:类名.属性。a2.修鉓方法:该方法是一个静态的方法,调用时用:类名.静态方法(),没有static修鉓的方法叫实例的方法,使用 阅读全文
posted @ 2017-10-26 09:07 Yusco 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9