摘要: 前台Ajax $.ajax({ type: "post", url: areaComp, dataType: "json", contentType: "application/json", data: data, async: false, //再次添加头部信息 beforeSend: funct 阅读全文
posted @ 2019-04-10 17:14 高木子 阅读(9135) 评论(1) 推荐(0)
摘要: 根据实现原理分成下面两大类: Filter和Listener:依赖Servlet容器,基于函数回调实现。可以拦截所有请求,覆盖范围更广,但无法获取ioc容器中的bean。 Interceptor和aop:依赖spring框架,基于java反射和动态代理实现。只能拦截controller的请求,可以获 阅读全文
posted @ 2019-04-10 15:51 高木子 阅读(6313) 评论(0) 推荐(0)
摘要: package com.gx.config; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Be 阅读全文
posted @ 2019-04-10 15:45 高木子 阅读(11012) 评论(4) 推荐(0)
摘要: 背景 在 windows 系统中,idea 在 C:\Users\用户名\.IntelliJIdea2018.2\config\extensions\com.intellij.database\schema 目录下默认存在如下 Groovy 文件:Generate POJOs.groovy,配合 i 阅读全文
posted @ 2019-04-10 11:16 高木子 阅读(4953) 评论(4) 推荐(1)