File tree Expand file tree Collapse file tree
main/java/top/cadecode/application Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88@ SpringBootApplication
99@ MapperScan ("top.cadecode" )
1010@ ComponentScan ("top.cadecode" )
11- public class WebApplication {
11+ public class Application {
1212
1313 public static void main (String [] args ) {
14- SpringApplication .run (WebApplication .class , args );
14+ SpringApplication .run (Application .class , args );
1515 }
1616
1717}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public class ServletInitializer extends SpringBootServletInitializer {
77
88 @ Override
99 protected SpringApplicationBuilder configure (SpringApplicationBuilder application ) {
10- return application .sources (WebApplication .class );
10+ return application .sources (Application .class );
1111 }
1212
1313}
Original file line number Diff line number Diff line change 55import org .springframework .boot .test .context .SpringBootTest ;
66
77@ SpringBootTest
8- public class WebApplicationTests {
8+ public class ApplicationTests {
99
1010 @ Test
1111 void contextLoads () {
Original file line number Diff line number Diff line change 44import org .junit .jupiter .api .Test ;
55import org .springframework .beans .factory .annotation .Autowired ;
66import org .springframework .boot .test .context .SpringBootTest ;
7- import top .cadecode .application .WebApplication ;
7+ import top .cadecode .application .Application ;
88
99/**
1010 * @author Cade Li
1111 * @date 2021/12/3
1212 * @description DemoMapper 测试类
1313 */
1414@ Slf4j
15- @ SpringBootTest (classes = WebApplication .class )
15+ @ SpringBootTest (classes = Application .class )
1616public class DemoMapperTest {
1717
1818 @ Autowired
You can’t perform that action at this time.
0 commit comments