master
ziyonghong 5 years ago
parent 603d85f591
commit 1c861b7495

@ -28,7 +28,7 @@ public class QuestionController {
disease dis=new disease();
medicine med=new medicine();
@RequestMapping("/hello")
@RequestMapping("/hello")
public String JudgeAtrribute(@RequestParam("name") String name){
String re = null;
try {

@ -0,0 +1,19 @@
package com.cmkg.cmkg.repository;
import com.cmkg.cmkg.database.user;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import static org.junit.jupiter.api.Assertions.*;
class Login_Register_RepositoryTest {
@Autowired
Login_Register_Repository login_register_repository;
@Test
public void test(){
login_register_repository.save(new user("13333","ki","jfld",2,2,"re"));
}
}
Loading…
Cancel
Save