{"action":"opened","issue":{"url":"https://api.github.com/repos/abel533/MyBatis-Spring-Boot/issues/11","repository_url":"https://api.github.com/repos/abel533/MyBatis-Spring-Boot","labels_url":"https://api.github.com/repos/abel533/MyBatis-Spring-Boot/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/abel533/MyBatis-Spring-Boot/issues/11/comments","events_url":"https://api.github.com/repos/abel533/MyBatis-Spring-Boot/issues/11/events","html_url":"https://github.com/abel533/MyBatis-Spring-Boot/issues/11","id":171213611,"number":11,"title":"问题：事务如何使用？","user":{"login":"LiuXiaoJie","id":6008988,"avatar_url":"https://avatars.githubusercontent.com/u/6008988?v=3","gravatar_id":"","url":"https://api.github.com/users/LiuXiaoJie","html_url":"https://github.com/LiuXiaoJie","followers_url":"https://api.github.com/users/LiuXiaoJie/followers","following_url":"https://api.github.com/users/LiuXiaoJie/following{/other_user}","gists_url":"https://api.github.com/users/LiuXiaoJie/gists{/gist_id}","starred_url":"https://api.github.com/users/LiuXiaoJie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiuXiaoJie/subscriptions","organizations_url":"https://api.github.com/users/LiuXiaoJie/orgs","repos_url":"https://api.github.com/users/LiuXiaoJie/repos","events_url":"https://api.github.com/users/LiuXiaoJie/events{/privacy}","received_events_url":"https://api.github.com/users/LiuXiaoJie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-15T17:01:33Z","updated_at":"2016-08-15T17:01:33Z","closed_at":null,"body":"看到config里面配置了事务，请问这个如何使用？在service层类上加上@Transactional注解好像不起作用，打印的SQL语句提示事务不被spring管理，把@Transactional注解移到mapper层，提示事务被spring管理。请问如何让事务作用在service层？\r\n\r\n在[stackoverflow](http://stackoverflow.com/questions/38528436/spring-boot-mybatis-transaction-not-work)上看到相似问题，也没有得到解答。"}}
{"actor":{"display_login":"LiuXiaoJie"}}