File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
main/java/com/didispace/chapter35
test/java/com/didispace/chapter35 Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 19
19
</properties >
20
20
21
21
<dependencies >
22
- <dependency >
23
- <groupId >org.springframework.boot</groupId >
24
- <artifactId >spring-boot-starter-web</artifactId >
25
- </dependency >
26
-
27
22
<dependency >
28
23
<groupId >org.mybatis.spring.boot</groupId >
29
24
<artifactId >mybatis-spring-boot-starter</artifactId >
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
- import org .springframework .web .bind .annotation .GetMapping ;
6
- import org .springframework .web .bind .annotation .RestController ;
7
5
8
6
@ SpringBootApplication
9
7
public class Chapter35Application {
Original file line number Diff line number Diff line change 9
9
import org .springframework .boot .test .context .SpringBootTest ;
10
10
import org .springframework .test .annotation .Rollback ;
11
11
import org .springframework .test .context .junit4 .SpringRunner ;
12
+ import org .springframework .transaction .annotation .Transactional ;
12
13
13
14
import javax .sql .DataSource ;
14
15
import java .util .List ;
15
16
16
- @ Slf4j
17
17
@ RunWith (SpringRunner .class )
18
18
@ SpringBootTest
19
+ @ Transactional
19
20
public class Chapter35ApplicationTests {
20
21
21
22
@ Autowired
You can’t perform that action at this time.
0 commit comments