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 1919 </properties >
2020
2121 <dependencies >
22- <dependency >
23- <groupId >org.springframework.boot</groupId >
24- <artifactId >spring-boot-starter-web</artifactId >
25- </dependency >
26-
2722 <dependency >
2823 <groupId >org.mybatis.spring.boot</groupId >
2924 <artifactId >mybatis-spring-boot-starter</artifactId >
Original file line number Diff line number Diff line change 22
33import org .springframework .boot .SpringApplication ;
44import org .springframework .boot .autoconfigure .SpringBootApplication ;
5- import org .springframework .web .bind .annotation .GetMapping ;
6- import org .springframework .web .bind .annotation .RestController ;
75
86@ SpringBootApplication
97public class Chapter35Application {
Original file line number Diff line number Diff line change 99import org .springframework .boot .test .context .SpringBootTest ;
1010import org .springframework .test .annotation .Rollback ;
1111import org .springframework .test .context .junit4 .SpringRunner ;
12+ import org .springframework .transaction .annotation .Transactional ;
1213
1314import javax .sql .DataSource ;
1415import java .util .List ;
1516
16- @ Slf4j
1717@ RunWith (SpringRunner .class )
1818@ SpringBootTest
19+ @ Transactional
1920public class Chapter35ApplicationTests {
2021
2122 @ Autowired
You can’t perform that action at this time.
0 commit comments