![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
框架
逸川先生
Java开发工程师,专注后台开发两年,擅长分布式系统
展开
-
spring整合junit4
import com.bl.spring8.bean.Account; import com.bl.spring8.config.SpringConfiguration; import com.bl.spring8.service.IAccountService; import org.junit.Before; import org.junit.Test; import org.junit.r...原创 2019-11-17 09:38:25 · 212 阅读 · 0 评论 -
mybatis -- 插入数据并获取自增长Id
xml 方式: <insert id="insertUserAndGetId" parameterType="com.bl.crud01.mapper.User"> <selectKey keyProperty="id" keyColumn="id" resultType="int" order="AFTER"> select last_inse...原创 2019-11-11 22:25:16 · 265 阅读 · 0 评论 -
自定义一个简单的MyBatis -- XML -- queryAll
为了使用起来和mybatis是一样一样的,名字也跟mybatis一样,先出一个xml版本的查询 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20...原创 2019-11-10 22:58:06 · 1125 阅读 · 0 评论 -
SSM框架优缺点和springboot 比起优缺点是什么?
今天在开源中国上看到一篇讲SSM、SpringBoot讲的不错的回答,分享! https://www.oschina.net/question/930697_2273593 一、SSM优缺点应该分开来说的,比如 1)spring 不说了,核心ioc、aop技术,ioc解耦,使得代码复用,可维护性大幅度提升,aop提供切面编程,同样的增强了生产力。 2)spring mvc嘛,是对比stru...转载 2018-12-02 22:59:52 · 36274 阅读 · 2 评论 -
Spring - 使用注解配置AOP
1.配置切点 /** * 切点 * @Component默认是类名首字母小写,也可以写成 @Component("demo123")进行自定义 * @author BarryLee * @2018年11月14日@上午8:50:51 */ @Component("demo123") public class Demo { //配置切点 @Pointcut("execut...原创 2018-11-14 10:28:04 · 1798 阅读 · 1 评论 -
Struts2基本流程
0.Filter优先级比较高,tomcat启动的时候就会加载,而加载这个Filter的时候,也会读取到struts.xml 1.用户访问服务器 2.根据struts.xml中的配置和用户的请求url,找到配置的action 3、4、5、6:也就是访问了servlet,dao 7.返回结果到中央处理器 8.根据action的返回值找到相对应的jsp 9.返回结果 10.中央处理器将...原创 2018-11-15 22:31:46 · 194 阅读 · 0 评论 -
SpringMVC访问流程
1.简单版 2. 详细版 用户发送请求至前端控制器DispatcherServlet DispatcherServlet收到请求调用HandlerMapping处理器映射器。 处理器映射器根据请求url找到具体的处理器,生成处理器对象及处理器拦截器(如果有则生成)一并返回给DispatcherServlet。 DispatcherServlet通过HandlerAdapter处理...原创 2018-11-15 20:03:06 · 757 阅读 · 0 评论 -
Schema-based - 环绕通知
以上包并不都是必须的 1.写一个切点,也就是被拦截的方法 /** * 作为切点 * @author BarryLee * @2018年11月13日@下午11:43:12 */ public class Demo { public void testAround() { System.out.println("testAround"); } } 2.环绕通知类,执...原创 2018-11-13 23:50:13 · 255 阅读 · 0 评论 -
aspectj - 环绕通知
先导入需要的jar包 1.编写切点类,也就是被拦截的 /** * 切点 * @author BarryLee * @2018年11月13日@下午11:22:52 */ public class Demo { public void test1() { System.out.println("hello aspectj .. "); } } 2.环绕通知 /**...原创 2018-11-13 23:30:25 · 797 阅读 · 0 评论 -
使用maven搭建ssm环境进行登录
eclipse有默认的maven,但是我是使用自己下载的:http://maven.apache.org/download.cgi GitHub:https://github.com/SUBEYZ/HelloGit/tree/master/blankMavenSSM 下载好设置setting.xml 配置: <localRepository>F:/maven仓库/resp...原创 2018-10-31 12:17:49 · 237 阅读 · 0 评论