![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
框架
文章平均质量分 80
程序员沐子
一条胸无大志的咸鱼!!!
展开
-
day05笔记
AOP知识切入点表达式1.bean表达式说明:根据bean的ID拦截指定的对象 @Pointcut("bean(userServiceImpl)") public void pointcut(){ }2.within表达式说明: 按照类型匹配. 可以使用通配符*号 1. @Pointcut("within(com.jt.service.UserServiceImpl)") 只拦截UserServiceImpl的类 2. @Pointc原创 2021-12-27 20:47:32 · 132 阅读 · 0 评论 -
day04笔记
代理模式业务层如何控制事务事务: 可以保证数据的/原子性/一致性/持久性/隔离性.说明: 业务层操作时,需要考虑数据库的事务.代码结构如下:package com.jt.service;import org.springframework.stereotype.Service;@Servicepublic class UserServiceImpl implements UserService{ @Override public void addUser() {原创 2021-12-25 14:53:00 · 102 阅读 · 0 评论 -
day03笔记
Spring框架讲解单例和多例单例:对象在内存中只有一份多例:对象在内存中可能有多份规则1:Spring默认管理的对象都是单例的规则2:通过@Scope注解,控制对象是单例/多例@Scope("singleton") 单例模式 默认就是单例@Scope("prototype") 多例模式懒加载机制懒加载说明说明: 如果Spring容器创建,对象立即创建则该加载方式为 “立即加载”, 容器启动时创建如果Spring容器创建,对象在被使用的时候...原创 2021-12-24 20:14:09 · 97 阅读 · 0 评论 -
day02笔记
空原创 2021-12-24 20:13:27 · 188 阅读 · 0 评论 -
day01笔记
空空如也!!!原创 2021-12-24 20:09:51 · 195 阅读 · 0 评论