摘要: /** * 全局异常处理 * @author Administrator * */ @ControllerAdvice public class GloableExceptionController extends BaseController{ /** * 拦截Exception类型异常 * 所有 阅读全文
posted @ 2022-06-17 13:54 陳丶 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: @Component @Intercepts({ @Signature( type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class }) }) public class Sql 阅读全文
posted @ 2022-06-17 13:51 陳丶 阅读(773) 评论(0) 推荐(0) 编辑
摘要: @WebFilter(urlPatterns = "/*", filterName = "sqlFilter") @Configuration public class SqlFilter implements Filter { @Override public void init(FilterCo 阅读全文
posted @ 2022-06-17 13:50 陳丶 阅读(891) 评论(0) 推荐(0) 编辑
摘要: shiro所需要的包 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-cas</artifactId> <version>1.2.4</version> </dependency> <dependency> <gr 阅读全文
posted @ 2022-06-17 13:44 陳丶 阅读(600) 评论(0) 推荐(0) 编辑