代码改变世界

Spring 注解

2017-03-23 15:01 by xiangjune, 7583 阅读, 2 推荐, 收藏, 编辑
摘要:@Autowired 自动注入 (存在多个可注入Bean时,通过 @Qualifier 指定)@Resource 与@Autowired作用相同@Repository 只能标注在 DAO 类上。该注解的作用不只是将类识别为 Bean,同时它还能将所标注的类中抛出的数据访问异常封装为 Spring 的 阅读全文

spring 大纲

2017-03-22 14:11 by xiangjune, 287 阅读, 0 推荐, 收藏, 编辑
摘要:课程内容 a) inversion of control b) dependency injection a) xml b) annotation a) xml b) annotation a) opensessionInviewfilter(记住,解决什么问题,怎么解决) 面向接口编程(面向抽象编 阅读全文

hibernate提纲

2017-03-22 09:02 by xiangjune, 221 阅读, 0 推荐, 收藏, 编辑
摘要:知识点终结: 1 新建项目 2 学习建立user-library-hibernate,并加入相应的jar包 a项目右键-build path-configure buildpath-add library b选择user-library,在其中新建library,命命为hibernate c 在该l 阅读全文

spring基础

2017-03-17 15:20 by xiangjune, 232 阅读, 0 推荐, 收藏, 编辑
摘要:XML文件: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in 阅读全文

eclipse如何利用userLibrary更好的分类jar

2017-03-17 09:32 by xiangjune, 248 阅读, 0 推荐, 收藏, 编辑
摘要:当一个工程需要引用的.jar数量非常多时,可以利用userLibrary对.jar进行分类,能更好的对这些.jar进行管理 1.新建一个分类 userLibrary windows -> perferences -> userLibraries; new 一个新的分类; 选中新的分类userLibr 阅读全文

【tomcat】There are no resources that can be added or removed from the server

2017-03-17 09:11 by xiangjune, 8249 阅读, 0 推荐, 收藏, 编辑
摘要:1、直接打开在eclipse中选中该不能导入项目,右键打开项目属性,在项目属性里选择项目 类型为Dynamic WebProject即可发布。 2、eclipse导入一个项目后,不能加载到tomcat里面,出现“Thereare no resources that can be added or r 阅读全文

spring mvc 学习历程

2017-03-16 14:24 by xiangjune, 162 阅读, 0 推荐, 收藏, 编辑
摘要:1.搭建环境2.controller 和 view 的映射3.view传值给controller4.controller传值给VIEW5.异常处理6.页面标签上传7.文件8.深入源代码 阅读全文

帝国CMS列表模板页面IF判断

2017-03-12 17:47 by xiangjune, 2167 阅读, 0 推荐, 收藏, 编辑
摘要:$listtemp = '<li class=" g_over">';$listtemp .= '<a href="[!--titleurl--]" class="img" rel="nofollow" target="_blank" title="[!--title--]">';if(!empty 阅读全文

spring mvc 基础详解

2017-03-10 10:40 by xiangjune, 185 阅读, 0 推荐, 收藏, 编辑
摘要:一、SpringMVC基础入门,创建一个HelloWorld程序 1.首先,导入SpringMVC需要的jar包。 2.添加Web.xml配置文件中关于SpringMVC的配置 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <!--configure the setting 阅读全文

web.xml 配置

2017-03-09 16:26 by xiangjune, 148 阅读, 0 推荐, 收藏, 编辑
摘要:1. 配置 servlet <servlet> <servlet-name>hello</servlet-name> <servlet-class>test.HelloWorldHttpServlet</servlet-class> </servlet> <servlet-mapping> <ser 阅读全文
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页