![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 94
命运的左岸
日拱一卒,功不唐捐
展开
-
@Transactional
@Transactional事务管理的目的在出现异常的情况下,保证数据的一致性;数据提交操作回滚至异常发生前的状态事务管理的方式:Spring(Spring Framework 提供对事务管理的抽象接口) 支持两种事务管理方式: 编程式事务管理:使用TransactionTemplate或PlatformTransactionManager实现声明式事务管理原创 2018-01-09 21:28:33 · 43475 阅读 · 8 评论 -
事务管理
声明式事务 tx:advice id="transactionAdvice" transaction-manager="transactionManager">原创 2018-01-25 22:16:05 · 590 阅读 · 0 评论 -
spring 定时任务 scheduled Cron表达式
[align=center]spring 定时任务 scheduled Cron表达式[/align]原创 2016-09-16 08:40:07 · 180 阅读 · 0 评论 -
Spring工程创建
1.创建Java Web项目2.打开pom.xml 文件,添加如下依赖内容[code="xml"]org.springframeworkspring-context3.1.1.RELEASE [/code]3.新增 src/main/resource 包添加 applicationContent.xml 文件内容如下:...原创 2017-03-20 21:46:18 · 84 阅读 · 0 评论 -
log4j配置及使用
Log4j[list][*]Logger日志器:代码中使用进行相应级别的日志输出[*]Appender输出器:指明日志输出的形式[*]Layout布局器:指明日志输出的格式[/list]配置文件:log4j.properties[code="xml"]#根级别设置,后面为输出器的定义名称,可定义多个log4j.rootLogger=warn,mycons...原创 2017-03-22 21:48:40 · 92 阅读 · 0 评论