摘要: 1.导入依赖 <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils --><dependency> <groupId>commons-beanutils</groupId> <artifactId>co 阅读全文
posted @ 2020-06-11 10:50 墨尘无雪 阅读(201) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2020-06-10 22:29 墨尘无雪 阅读(161) 评论(0) 推荐(0) 编辑
摘要: ModelAndView的部分回顾 //@RestController @Controller //@SessionAttributes("user") //把modelandview中user attribute对象 拷贝了一份到session的共享控制当中。 public class Test0 阅读全文
posted @ 2020-06-08 22:28 墨尘无雪 阅读(152) 评论(0) 推荐(0) 编辑
摘要: SringMVC 国际化 0.依赖(不只是本案例所需) <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/200 阅读全文
posted @ 2020-06-08 21:58 墨尘无雪 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 事物管理对于企业应用来说是至关重要的,好使出现异常情况,它也可以保证数据的一致性。spring支持编程式事务管理和声明式事务管理两种方式。 编程式事务管理使用TransactionTemplate或者直接使用底层的PlatformTransactionManager。对于编程式事务管理,spring 阅读全文
posted @ 2020-06-08 11:00 墨尘无雪 阅读(715) 评论(0) 推荐(0) 编辑
摘要: 如果使用了<mvc:annotation-driven />, 它会自动注册DefaultAnnotationHandlerMapping 与AnnotationMethodHandlerAdapter 这两个bean, 所以就没有机会再给它注入interceptors属性,就无法指定拦截器。 当然 阅读全文
posted @ 2020-06-05 09:46 墨尘无雪 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 注解之@PathVariable @PathVariable只支持一个属性value,类型是为String,代表绑定的属性名称。默认不传递时,绑定为同名的形参。 用来便捷地提取URL中的动态参数。其英文注释如下: Annotation which indicates that a method pa 阅读全文
posted @ 2020-06-04 13:51 墨尘无雪 阅读(839) 评论(0) 推荐(0) 编辑
摘要: request.getParameter(“xxx”)的参数的取值 request.getParameter(“xxx”)的参数的取值的几种可能: 1. Html中form表单中标签的name属性: <form name="form" method="post" action="checkUser" 阅读全文
posted @ 2020-06-04 08:35 墨尘无雪 阅读(450) 评论(0) 推荐(0) 编辑
摘要: AOP(Aspect Orient Programming),它是面向对象编程的一种补充,主要应用于处理一些具有横切性质的系统级服务,如日志收集、事务管理、安全检查、缓存、对象池管理等。 AOP实现的关键就在于AOP框架自动创建的AOP代理,AOP代理则可分为静态代理和动态代理两大类,其中静态代理是 阅读全文
posted @ 2020-06-03 14:31 墨尘无雪 阅读(10876) 评论(1) 推荐(3) 编辑