02 2019 档案

摘要:首先说明一下二者的区别: 1. 拦截器基于java的反射机制,而过滤器是基于函数回调 2. 拦截器不依赖于servlet容器,过滤器依赖servlet容器 3. 拦截器只能对action请求起作用,而过滤器则可以对几乎所有的请求起作用 4. 在action的生命周期中,拦截器可以多次被调用,而过滤器 阅读全文
posted @ 2019-02-28 14:05 colin220 阅读(4095) 评论(1) 推荐(2) 编辑
摘要:Thymeleaf定义:Thymeleaf is a modern server-side Java template engine for both web and standalone environments, capable of processing HTML, XML, JavaScri 阅读全文
posted @ 2019-02-26 09:18 colin220 阅读(356) 评论(0) 推荐(0) 编辑
摘要:Spring Boot如何和Shiro进行整合: 先自定义一个Realm继承AuthorizingRealm,并实现其中的两个方法,分别对应认证doGetAuthenticationInfo和授权doGetAuthorizationInfo。 创建一个ShiroConfig的类,加上@Configu 阅读全文
posted @ 2019-02-20 10:53 colin220 阅读(250) 评论(0) 推荐(0) 编辑
摘要:H2数据库:java语言编写的嵌入式sql数据库。可以和应用一起打包发布。 H2有三种连接模式(Connection Modes): Embedded mode (local connections using JDBC) Server mode (remote connections using 阅读全文
posted @ 2019-02-15 13:00 colin220 阅读(1572) 评论(0) 推荐(0) 编辑