init project

This commit is contained in:
ldj_willow
2022-06-27 09:43:35 +08:00
parent 10bdfa2474
commit b3fcd339ea
796 changed files with 103947 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package day01;
import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.nl.wql.WQLCore;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@RunWith(SpringRunner.class)
public class BaseTest {
@Before
public void init() {
WQLCore.ROOT = "org.nl";
try {
WQLCore.init();
} catch (Exception e) {
e.printStackTrace();
}
}
@After
public void after() {
System.out.println("测试结束-----------------");
}
}

View File

@@ -0,0 +1,2 @@
package org.nl;public class Student {
}

View File

@@ -0,0 +1,10 @@
package day01;
import org.nl.utils.StringUtils;
public class Test3 {
public static void main(String[] args) {
String localIp = StringUtils.getLocalIp();
System.out.println(localIp);
}
}