(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执行此方法。
字节(Byte)是计量单位,表示数据量多少,是计算机信息技术用于计量存储容量的一种计量单位,通常情况下一字节等于八位。字符(Character)计算机中使用的字母、数字、字和符号,比如'A'、'B'、'$'、'&'等。一般在英文...
public class test { public static void main(String[] args) { &...
public class test { public static void main(String[] args) { &...
java限制1个方法同一时间只能被一个线程访问public synchronized void setOrderPay(){ }加上synchronized 修饰符即可...
java判断字符是否是一个字母System.out.println(Character.isLetter('a'));java判断字符是否是一个数字System.out.println(Character.isDigit('0'));java判断字符是否是一个空白Sy...
在java中字符串属于对象,刚开始我就疑惑为什么int char等类型都是小写,结果String是大写,java太反人类,后来才知道String是对象。(1).java创建字符串String text = "net"; String tex...