博客详情

springboot的test (原创)

作者: 朝如青丝暮成雪
发布时间:2020-05-15 12:15:10  文章分类:springboot   阅读(912)  评论(0)

springboot的test 


java代码:

@RunWith(SpringRunner.class)
@SpringBootTest
public class SpringTest {
    

 
    @Test
    public void test1(){
        //xxx
    }

}

=====================

spring2.7.2的springboot的test类


import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = MyCloudServerApplication.class) //classes传springboot的启动类
public class MybatisPlusTest01 {

    @Test
    public void test1(){
    
    }
}





 

关键字:  springboot  test
评论信息
暂无评论
发表评论

亲,您还没有登陆,暂不能评论哦! 去 登陆 | 注册

博主信息
   
数据加载中,请稍候...
文章分类
   
数据加载中,请稍候...
阅读排行
 
数据加载中,请稍候...
评论排行
 
数据加载中,请稍候...

Copyright © 叮叮声的奶酪 版权所有
备案号:鄂ICP备17018671号-1

鄂公网安备 42011102000739号