原创 Spring-aop的配置,開啓事務(註解)

在上一篇當中說了xml的配置,這一片我們繼續講解註解 上一篇:開啓事務xml 相對之前純xml配置,註解就相對簡單的多了 <bean id="transactionManager" class="org.springframe

原创 mysql數據庫操作格式

新建庫:   create database 庫名; 修改庫字符編碼:   alter database 庫名 character set="編碼名字" 查看庫或者表格:   show database/table; 進入庫:   use

原创 SpringAOP事務—AspectJ配置

SpringAOP配置: 必須代理類 每個Service必須註冊一個代理類 AOP-XML配置 SpringAOP註解: 每個Service類的每個方法都有添加註解 AOP-註解配置 AspectJ註解配置:一般推薦使用這種 在基

原创 Spring-aop的配置,開啓事務(xml)

基礎架包和aop聯盟包, spring-aop.jar 事務這個概念的數據庫的 實際項目中事務的處理在Service Spring控制事務處理有三種方法 Spring-aop的配置 Spring-aop的註解 Spring