代码改变世界

spring-expression-02

2018-11-21 23:56 by crow!, 481 阅读, 0 推荐, 收藏, 编辑
摘要:root 变量 方法 root的属性 使用Bean 集合 配置文件操作 配置annotation 阅读全文

spring+springmvc+mybatis

2018-11-21 00:36 by crow!, 150 阅读, 0 推荐, 收藏, 编辑
摘要:web.xml mybatis.cfg.xml databases.properties applicationContext.xml vo action dao service 阅读全文

mybatis

2018-11-20 23:54 by crow!, 269 阅读, 0 推荐, 收藏, 编辑
摘要:数据库创建脚本 mybatis的配置文件 :mybatis.cfg.xml member.xml Groups.xml MemberDetails.xml MemberLogin.xml News.xml Roles.xml Subtype.xml Type.xml Groups Member Me 阅读全文

spring-expression-01

2018-11-19 22:46 by crow!, 433 阅读, 0 推荐, 收藏, 编辑
摘要:表达式步骤 使用变量 简单表达式 自定义分割符 基本表达式 + 四则运算 ^ 幂运算 2^3 % MOD / DIV > GT >= GE == EQ != NE < LT <= LE ! NOT AND OR 正则 如 "'123' matches '\\d{3}'" 三木运算 null==nul 阅读全文

spring-task-01

2018-11-18 23:39 by crow!, 162 阅读, 0 推荐, 收藏, 编辑
摘要:第一种方式 applicationContext 第二种方式 阅读全文

spring-quartz-01

2018-11-18 22:10 by crow!, 113 阅读, 0 推荐, 收藏, 编辑
摘要:test (容器启动时调用 定时任务 需要quartz-2.2.1.jar) 阅读全文

spring-Resource-01

2018-11-18 19:40 by crow!, 187 阅读, 0 推荐, 收藏, 编辑
摘要:1、读取不同资源 字节码 从文件读取 classpath读取 DefaultResourceLoader http 通过网络读取 file通过文件读取 classpath通过classpath读取 Resource自动装配 ->MyResource ->applicationContext.xml 阅读全文

spring-06

2018-11-06 22:43 by crow!, 130 阅读, 0 推荐, 收藏, 编辑
摘要:annotation applicationContext.xml 引入 xmlns:context="http://www.springframework.org/schema/context" http://www.springframework.org/schema/context http: 阅读全文

spring-05

2018-11-05 23:33 by crow!, 135 阅读, 0 推荐, 收藏, 编辑
摘要:java code: ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); //此时调用msg的init ctx.registerShutdownHook( 阅读全文

spring-04

2018-11-05 21:39 by crow!, 170 阅读, 0 推荐, 收藏, 编辑
摘要:集合注入 Member applicationContext.xml 在默认情况下会用ArrayList为List接口实例化。LinkedHashSet实例化Set 。结合了List的顺序保存,和Set的不容许重复。 内部bean模式 P命名空间 阅读全文