(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) { &...
(1).final 修饰符通常和 static 修饰符一起使用来创建类常量。(2).父类中的 final 方法可以被子类继承,但是不能被子类重写,声明 final 方法的主要目的是防止该方法的内容被修改。public class Member {  ...
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).java获取当前日期时间Date date = new Date(); System.out.println(date.toString());输出Fri Jul 02 10:29:55 CST 2021(2).java获取时间戳秒/毫秒D...
System.out.println("当前时间戳(秒): " + System.currentTimeMillis()/1000); System.out.println("当前时间戳(毫秒): " +&nb...