|
|
@@ -16,14 +16,14 @@ import java.sql.SQLException;
|
|
|
/**
|
|
|
* Created by Pro1 on 2017/7/28.
|
|
|
*/
|
|
|
-//@RunWith(SpringJUnit4ClassRunner.class)
|
|
|
-//@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = UasSchedulingApplication.class)
|
|
|
+@RunWith(SpringJUnit4ClassRunner.class)
|
|
|
+@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = UasSchedulingApplication.class)
|
|
|
public class RestJdbcTest {
|
|
|
|
|
|
@Autowired
|
|
|
private RestJdbcTemplate restJdbcTemplate;
|
|
|
|
|
|
-// @Test
|
|
|
+ @Test
|
|
|
public void testQuery() throws SQLException{
|
|
|
Master master = new Master();
|
|
|
master.setMa_user("UAS");
|