1.Spring-mybatis-删除实现-SQL注入

This commit is contained in:
2025-09-25 15:46:07 +08:00
parent 4040b06ab8
commit 784f2e5603
3 changed files with 24 additions and 0 deletions

View File

@@ -1,13 +1,23 @@
package com.inmind;
import com.inmind.mapper.EmpMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SpringbootMybatisCrudApplicationTests {
@Autowired
private EmpMapper empMapper;
@Test
void contextLoads() {
}
@Test
void testDelete(){
int count = empMapper.delete(15);
System.out.println(count);
};
}