当前位置: 首页 > wzjs >正文

网站带数据库下载wordpress编辑栏不见了

网站带数据库下载,wordpress编辑栏不见了,全程电子化服务平台,体育新闻最新消息10条场景 在IDEA中的SpringBoot项目使用Junit进行单元测试。 1.使用Test标明的方法不能有参数和返回值。 2.使用Autowired实现自动注入时需要在测试类上添加注解。 实现 在test目录下新建单元测试类 package com.ws.test.common;import com.baomidou.mybatisplus.core.conditi…

 场景

在IDEA中的SpringBoot项目使用Junit进行单元测试。

1.使用@Test标明的方法不能有参数和返回值。

2.使用@Autowired实现自动注入时需要在测试类上添加注解。

实现

在test目录下新建单元测试类

package com.ws.test.common;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ws.sys.entity.SysEnterpriseOrg;
import com.ws.sys.mapper.SysEnterpriseOrgMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;import java.util.ArrayList;
import java.util.List;@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
@WebAppConfiguration
public class diguiTest  {@Autowiredprivate SysEnterpriseOrgMapper sysEnterpriseOrgMapper;List<Long> result = new ArrayList<Long>();@Testpublic void test(){List<Long> canshu = new ArrayList<Long>();canshu.add(1l);selectChild(canshu);for (Long s :result) {System.out.print(s);}}public void selectChild(List<Long> ids){List<Long> temp= new ArrayList<Long>();List<SysEnterpriseOrg> sysEnterpriseOrgList = new ArrayList<SysEnterpriseOrg>();for (Long id :ids) {//查询子级架构QueryWrapper<SysEnterpriseOrg> sysEnterpriseOrgChildQueryWrapper = new QueryWrapper<SysEnterpriseOrg>();sysEnterpriseOrgChildQueryWrapper.eq("pid",id.toString());sysEnterpriseOrgList= sysEnterpriseOrgMapper.selectList(sysEnterpriseOrgChildQueryWrapper);for (SysEnterpriseOrg s:sysEnterpriseOrgList) {temp.add(s.getId());result.add(s.getId());}}if(temp.size()!=0&&temp!=null)selectChild(temp);}
}

http://www.dtcms.com/wzjs/839621.html

相关文章:

  • iis发布网站无法访问做哪些网站比较赚钱
  • 深圳商业网站建设天眼查 企业查询网页
  • 做购物网站的初衷云天下网站建设
  • 七米网站开发公司网站开发设计
  • 宁波做亚马逊网站网站如何做超链接
  • 做电影网站赚钱知乎科技创新作文
  • 惠州做网站开发网站个人备案流程
  • 如何自己制作免费网站解决方案网站设计
  • 北京建站公司兴田德润信任徐汇微信手机网站制作
  • 网站建设免费教程wordpress头像怎么设置
  • 赣州网站设计哪家强wordpress标签页样式
  • 网站建设网页设计培训班seo上首页
  • 广州商城网站建设地址查建设施工资质的网站
  • 如何把图片放到网站后台高端网站建设,恩愉科技
  • 如何做家教网站如何建视频网站
  • 服务器公司网站东莞网站关键词优化怎么做
  • 网站建设咸阳环保科技东莞网站建设
  • 网站建设:博采网络网页设计论文引言
  • 内网网站搭建工具网站icon怎么设置
  • 网站开发 实习报告哈尔滨公共资源交易中心官网
  • 网站开发员工资本地主机做网站服务器
  • 餐饮企业网站模板广州市手机网站建设公司
  • 网站建设 常州天眼企业信息查询
  • 行业展示类型网站博客网站 wordpress
  • 做网站公司电话搜索引擎优化入门
  • 怎么制作网站应用wordpress前端可视化编辑
  • 自己开发购物网站设计logo的网址
  • 辽宁建设工程信息网项目经理变更茂名seo网站建设
  • php做的网站安全吗成都h5网站建设
  • 网站建设装什么系统做百度手机网站关键词排名