摘要: 工程搭建 • 1依赖包 • 2配置文件 • 2.1spring-mybatis.xml • 2.2mybatis-config.xml自带配置文件 • 2.3 mapper(dao)对象 • 2.4 model 对象(pojo 数据库对象) • 2.5 mapper.xml 每次出新表的时候,都要重 阅读全文
posted @ 2017-10-28 15:48 GᎭ•Cristin 阅读(125) 评论(0) 推荐(0)
摘要: 1、通过web.xml读取log4j配置文件内容 2、通过不同的配置信息,来实现不同的业务输出,注意:log4j可以写入tomcat容器,也可以写入缓存,通过第三方平台读取 阅读全文
posted @ 2017-10-28 14:03 GᎭ•Cristin 阅读(394) 评论(0) 推荐(0)
摘要: Cron表达式是一个字符串,字符串以5或6个空格隔开,分为6或7个域,每一个域代表一个含义,Cron有如下两种语法格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year或 Seconds Minutes Hours DayofMonth M 阅读全文
posted @ 2017-10-28 11:14 GᎭ•Cristin 阅读(148) 评论(0) 推荐(0)
摘要: •依赖 spring-context-support •配置: <bean id ="taskExecutor" class ="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor" > <property name =" 阅读全文
posted @ 2017-10-28 10:12 GᎭ•Cristin 阅读(136) 评论(0) 推荐(0)
摘要: 在再度温习Java5的并发编程的知识点时发现,首要的就是把Runnable、Callable、Executor、Future等的关系搞明白,遂有了下述小测试程序,通过这个例子上述三者的关系就一目了然了。 在java5以后,一个可以调度执行的线程单元可以有三种方式定义: Thread、Runnable 阅读全文
posted @ 2017-10-28 09:51 GᎭ•Cristin 阅读(169) 评论(0) 推荐(0)