1. 添加HandlerMethodValidationException全局异常器
2. 新增防护对象类,添加Service、Mapper、Controller(Controller仍然在开发中) 3. page和pageSize添加@Min注解,限定最低整数大小 4. 将所有的批量类型方法修改为forEach,在SpringBoot中循环执行并整合为事务
This commit is contained in:
10
src/main/resources/mappers/ProtectObjectMapper.xml
Normal file
10
src/main/resources/mappers/ProtectObjectMapper.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.realtime.protection.server.defense.object.ProtectObjectMapper">
|
||||
<delete id="deleteProtectObject">
|
||||
DELETE FROM t_protect_object
|
||||
WHERE protect_object_id = #{proobj_id}
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user