spring
coder-zm
不忘初心
展开
-
Spring 事务方法调用问题(@Transactional)
前置条件创建表CREATE TABLE `test_table` ( `id` int(9) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `name` varchar(10) CHARACTER SET latin1 DEFAULT NULL COMMENT '姓名', `sex` tinyint(1) DEFAULT NUL...原创 2019-12-27 19:42:04 · 2201 阅读 · 0 评论 -
spring注解@SessionAttributes
单个参数设置注解:@Controller@RequestMapping("/user")@SessionAttributes("user")public class UserController { @ReuqestMapping("/getUser") public STRING getUser(Model model) { model.addAttribute("user"原创 2017-10-12 13:17:46 · 322 阅读 · 0 评论 -
InterceptorRegistration 拦截器注册类
InterceptorRegistrationorg.springframework.web.servlet.config.annotation.InterceptorRegistration 用于协助创建{@link MappedInterceptor}。属性private final HandlerInterceptor interceptor;private fi...原创 2019-07-31 21:49:33 · 8029 阅读 · 0 评论 -
InterceptorRegistry 拦截器注册类登记类
InterceptorRegistryorg.springframework.web.servlet.config.annotation.InterceptorRegistry 帮助配置映射截取程序列表属性/* * 拦截器注册类集合 */private final List<InterceptorRegistration> registrations = n...原创 2019-08-01 19:56:19 · 19071 阅读 · 0 评论