(1)、引入POM依赖项
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency>
(2)、在Test目录编写测试类,举个栗子
@SpringBootTest
public class createOrderRetail_Gelishi {
@Autowired
private IBillsEcJmsService ecJmsService;
@Autowired
private IBillsJmsService jmsService;
@Autowired
private ISystemParamsService systemParamsService;
@Autowired
private IECBillsSubmitService submitService;
@Autowired
@Qualifier("RestTemplateNoLoadBalanced")
private RestTemplate restTemplate;
@Test
public void twoTest() {
// 单据编号
String retailBillsId = "";
String billsOutsideId = "";
String platformOrderId = "";
// 订单冲单
createRetailByTest_retail(retailBillsId);
}然后通过idea执行此方法。
public class test { public static void main(String[] args) { &...
java判断字符是否是一个字母System.out.println(Character.isLetter('a'));java判断字符是否是一个数字System.out.println(Character.isDigit('0'));java判断字符是否是一个空白Sy...
java stringBuffer(1).stringBuffer和stringBuilder区别stringBuffer是线程安全的,stringBuilder速度更快(2).简单的stringBuffer例子StringBuffer sBuffer = new&nb...
(1).创建数组double[] myList = new double[size]; //推荐创建方式 double myList[] = new double[size];  ...
(1).java获取当前日期时间Date date = new Date(); System.out.println(date.toString());输出Fri Jul 02 10:29:55 CST 2021(2).java获取时间戳秒/毫秒D...
(1).java睡眠函数Thread.sleep(时间); //单位为毫秒(2).java睡眠函数例子Date dNow = new Date(); SimpleDateFormat ft = new&nbs...