首页
3D照片墙
统计
留言
Search
1
1.OAuth 的简单理解
115 阅读
2
多个拦截器的执行顺序
105 阅读
3
基于Annotation方式的声明式事务
102 阅读
4
6.设计模式汇总
101 阅读
5
Unity 依赖注入
98 阅读
Java
JDBC
Spring
Spring MVC
SpringBoot
SpringCloud
MybatisPlus
Mybatis
Maven
SpringSecurity
JVM
java注解与反射
Java JUC并发编程
SSM
.NET
IdentityServer4
EF
.Net Core
AbpVNext + DDD
.NET MVC Api
前端
Jquery&JavaScript
uniapp
VUE
Echars
Vue底层原理
Python
Django
软考笔记
软件设计师
1.计算机组成与体系结构
10.面向对象技术
11.UML类图建模
12.面向对象程序设计
13.数据结构
14.算法基础
16.知识产权标准化
17.程序设计语言
2.操作系统
3.数据库
4.数据库设计
5.计算机网络
6.信息安全
7.系统开发基础
8.项目管理
9.数据流图
架构设计
CQRS架构
DDD架构
数据库技术
SQL锁
SqlServer
Oracle 主从备份
Oracle RAC集群
Mysql
云原生/容器技术
kubernetes
Docker
数据结构与算法
常用中间件
Redis
RabbitMQ 消息队列
ElasticSearch
其他
PHP
OAuth 2.0
WebSocket
ArkTs Harmony 开发
运维
Search
标签搜索
排序算法
vue
算法
遍历
docker
线性
数组
dom
synchronized
数据库
xml语言
log4j
bigint
静态函数
静态方法
哈夫曼树
const
冒泡排序
商标设计
命令模式
Bi8bo
累计撰写
304
篇文章
累计收到
6
条评论
首页
栏目
Java
JDBC
Spring
Spring MVC
SpringBoot
SpringCloud
MybatisPlus
Mybatis
Maven
SpringSecurity
JVM
java注解与反射
Java JUC并发编程
SSM
.NET
IdentityServer4
EF
.Net Core
AbpVNext + DDD
.NET MVC Api
前端
Jquery&JavaScript
uniapp
VUE
Echars
Vue底层原理
Python
Django
软考笔记
软件设计师
1.计算机组成与体系结构
10.面向对象技术
11.UML类图建模
12.面向对象程序设计
13.数据结构
14.算法基础
16.知识产权标准化
17.程序设计语言
2.操作系统
3.数据库
4.数据库设计
5.计算机网络
6.信息安全
7.系统开发基础
8.项目管理
9.数据流图
架构设计
CQRS架构
DDD架构
数据库技术
SQL锁
SqlServer
Oracle 主从备份
Oracle RAC集群
Mysql
云原生/容器技术
kubernetes
Docker
数据结构与算法
常用中间件
Redis
RabbitMQ 消息队列
ElasticSearch
其他
PHP
OAuth 2.0
WebSocket
ArkTs Harmony 开发
运维
页面
3D照片墙
统计
留言
搜索到
86
篇与
的结果
2022-04-23
Bean的作用域
作用域 描述 singleton 在spring IoC容器仅存在一个Bean实例,Bean以单例方式存在,bean作用域范围的默认值。 prototype 每次从容器中调用Bean时,都返回一个新的实例,即每次调用getBean()时,相当于执行newXxxBean()。 request 每次HTTP请求都会创建一个新的Bean,该作用域仅适用于web的Spring WebApplicationContext环境。 session 同一个HTTP Session共享一个Bean,不同Session使用不同的Bean。该作用域仅适用于web的Spring WebApplicationContext环境。 application 限定一个Bean的作用域为ServletContext的生命周期。该作用域仅适用于web的Spring WebApplicationContext环境。 Spring Bean的作用域_forever-and-ever的博客-CSDN博客
2022年04月23日
96 阅读
0 评论
37 点赞
2022-04-18
4.配置 springmvc-config.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd"> <!-- 定义组件扫描器,指定需要扫描的包 扫描@Controller注解--> <context:component-scan base-package="com.boot_crm.controller"></context:component-scan> <!-- 加载注解驱动:配置处理器映射器和适配器 --> <mvc:annotation-driven/> <!-- 配置静态资源的访问映射,此配置中的文件,被springMVC映射访问,而不被前端控制器拦截 --> <mvc:resources location="/js/" mapping="/js/**"></mvc:resources> <mvc:resources location="/css/" mapping="/css/**"></mvc:resources> <mvc:resources location="/images/" mapping="/images/**"></mvc:resources> <mvc:resources location="/fonts/" mapping="/fonts/**"></mvc:resources> <!-- 配置视图解析器 --> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <!-- 设置前缀 --> <property name="prefix" value="/WEB-INF/jsp/"></property> <!-- 设置后缀 --> <property name="suffix" value=".jsp"></property> </bean> <!-- 配置拦截器 --> <!-- <mvc:interceptors> --> <!-- <mvc:interceptor> --> <!-- <mvc:mapping path="/**"/> --> <!-- <bean class="com.My.intercepter.LoginInterceptor"/> --> <!-- </mvc:interceptor> --> <!-- </mvc:interceptors> --> </beans>
2022年04月18日
2 阅读
0 评论
7 点赞
2022-04-11
@MartixValuable使用 Cookies被禁用,获取session的解决办法
url 重写 采用矩阵变量的方式 使用@MartixValuable注解 矩阵变量必须写在路径{} 例如 /abc;jsessionid=xxxxx; 继承WebMvcConfigurer接口 重写 也可以
2022年04月11日
64 阅读
0 评论
70 点赞
2022-04-11
spring security
(17条消息) spring security_小鱼儿的专栏-CSDN博客
2022年04月11日
75 阅读
0 评论
46 点赞
2022-04-10
基于xml的装配 注入
Spring基于XML装配Bean (biancheng.net). Spring 基于 XML 的装配通常采用两种实现方式,即设值注入(Setter Injection)和构造注入(Constructor Injection) 设值注入要求一个 Bean 的对应类必须满足以下两点要求。 必须提供一个默认的无参构造方法。 必须为需要注入的属性提供对应的 setter 方法。 <!-- 使用设值注入方式装配Person实例 --> <bean id="person1" class="com.mengma.assembly.Person"> <property name="name" value="zhangsan" /> <property name="age" value="20" /> </bean> <!-- 使用构造方法装配Person实例 --> <bean id="person2" class="com.mengma.assembly.Person"> <constructor-arg index="0" value="lisi" /> <constructor-arg index="1" value="21" /> </bean> <!--set方法注入 常用 涉及的标签:property 出现的位置:bean标签的内部 name:用于注入时所调用的set方法名称 value:用于提供基本类型和string类型数据 ref:用于指定其他的bean类型数据,它指的就是在spring的Ioc核心容器中出现过的bean对象 优势:创建对象时没有明确的限制,可以直接使用默认构造函数 弊端:如果由某个成员,必须有值,则获取对象时,有可能set方法没有执行 --> <bean id="accountService2" class="com.li.service.impl.AccountServiceImpl2"> <property name="name" value="test"></property> <property name="age" value="18"></property> <property name="birthday" ref="now"></property> </bean> 代码演示 public class AccountServiceImpl2 implements IAccountService { private String name; private Integer age; private Date birthday; public void setName(String name) { this.name = name; } public void setAge(Integer age) { this.age = age; } public void setBirthday(Date birthday) { this.birthday = birthday; } public void saveAccount() { System.out.println("service中的saveAccount执行了******"); }
2022年04月10日
29 阅读
0 评论
37 点赞
1
...
14
15
16
...
18