Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
303ada8c
Commit
303ada8c
authored
Apr 13, 2018
by
Junling Bu
Browse files
update[litemall-wx-api]:小商场支持事务管理
1. 经过分析,目前只有订单服务里面的下单、取消订单和退款取消订单是需要事务管理,其他业务都不需要。 2. 这里事务管理采用编程式事务管理方法。
parent
b8395d51
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/Application.java
View file @
303ada8c
...
...
@@ -3,9 +3,11 @@ package org.linlinjava.litemall.wx;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
@SpringBootApplication
(
scanBasePackages
={
"org.linlinjava.litemall.wx"
,
"org.linlinjava.litemall.db"
})
@MapperScan
(
"org.linlinjava.litemall.db.dao"
)
@EnableTransactionManagement
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
...
...
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxOrderController.java
View file @
303ada8c
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment