提交 eb51c219 编写于 作者: W wenguang

数据库连接测试,EasyExcel依赖包版本更新

上级 dc313ecf
......@@ -37,7 +37,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>1.1.2-beat1</version>
<version>2.1.6</version>
</dependency>
<dependency>
......
package com.we;
import com.we.pojo.Student;
import com.we.service.IStudentService;
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.SpringRunner;
import java.util.List;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = MainApplication.class, webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
public class WriteTest {
@Autowired
private IStudentService studentService;
@Test
public void selectAll() {
List<Student> stus = studentService.selectStuList();
System.out.println(stus.get(0));
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册