File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1414 <parent >
1515 <groupId >org.springframework.boot</groupId >
1616 <artifactId >spring-boot-starter-parent</artifactId >
17- <version >1.3.2.RELEASE</version >
17+ <!-- <version>1.3.2.RELEASE</version>-->
18+ <version >1.5.9.RELEASE</version >
1819 <relativePath /> <!-- lookup parent from repository -->
1920 </parent >
2021
Original file line number Diff line number Diff line change 1- spring.data.mongodb.uri =mongodb://name:pass@localhost:27017/test
2-
1+ # spring.data.mongodb.uri=mongodb://name:pass@localhost:27017/test
2+ spring.data.mongodb.host =127.0.0.1
3+ spring.data.mongodb.port =7900
4+ spring.data.mongodb.username =lyz
5+ spring.data.mongodb.password =lyz
6+ spring.data.mongodb.database =test
7+ spring.output.ansi.enabled =always
8+ # debug=false
39
Original file line number Diff line number Diff line change 77import org .junit .Test ;
88import org .junit .runner .RunWith ;
99import org .springframework .beans .factory .annotation .Autowired ;
10- import org .springframework .boot .test .SpringApplicationConfiguration ;
11- import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
10+ import org .springframework .boot .test .context . SpringBootTest ;
11+ import org .springframework .test .context .junit4 .SpringRunner ;
1212
1313
14- @ RunWith (SpringJUnit4ClassRunner .class )
15- @ SpringApplicationConfiguration ( Application . class )
14+ @ RunWith (SpringRunner .class )
15+ @ SpringBootTest
1616public class ApplicationTests {
1717
1818 @ Autowired
You can’t perform that action at this time.
0 commit comments