- 博客(10)
- 收藏
- 关注
原创 .Net 6.0 Web Api 报错 System.InvalidOperationException: Response Content-Length mismatch
.Net 6.0 Web Api 报错 System.InvalidOperationException: Response Content-Length mismatch
2023-11-14 09:51:51
478
原创 Spring 中 Bean 的作用域
默认情况下,Bean在Spring容器中是单例的,我们可以通过@Scope注解修改Bean的作用域。该注解有如下5个取值,它们代表了Bean的5种不同类型的作用域:类型说明singleton在Spring容器中仅存在一个实例,即Bean以单例的形式存在。prototype每次调用getBean()时,都会执行new操作,返回一个新的实例。request每次HTTP请求都会创建一个新的Bean。session同一个HTTP Session共享一个Bean,不同的
2022-05-15 14:51:02
214
原创 SSM框架整合约束文档
SSM框架整合约束文档1.applicationContext.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" xsi:schemaLocation="http://www.springfr
2022-05-09 11:25:52
130
原创 SpringBoot 整合 Druid
SpringBoot 整合 Druid整合Druid数据源准备工作1.添加druid依赖<dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.2.6</version></dependency>2.在applicatio
2022-05-09 11:24:32
147
原创 Spring Security
Spring Security一、使用1.导入Spring Security依赖<!-- spring security--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId>
2022-05-09 11:23:52
454
原创 Spring Boot -Shiro 集成
Spring Boot -Shiro 集成准备工作1.thymeleaf依赖 thymeleaf命名空间: xmlns:th="http://www.thymeleaf.org"<!--thymeleaf--> <dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymeleaf-spring5</a
2022-05-09 11:23:20
94
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人