Home
|
简体中文
|
繁体中文
|
杂文
|
Github
|
知乎专栏
|
Facebook
|
Linkedin
|
Youtube
|
打赏(Donations)
|
About
部分 I. Spring Framework
上一页
下一页
知乎专栏
部分 I. Spring Framework
目录
2. Spring 框架
2.1. @Bean
2.1.1. @Scope 定义类型
2.1.2. InitializingBean
2.2. URL 拼装/解析
2.3. ServletUriComponentsBuilder
2.4. URL 路径相关
2.5. 声明式 HTTP 客户端 HttpExchange
2.5.1. 支持的注解类型
2.5.2. RestClient 例子
2.5.3. HTTP 头设置
3. Spring WebMVC
3.1. @EnableWebMvc
3.1.1. @PostConstruct
3.2. @Controller
3.2.1. @RequestMapping
3.2.2. @GetMapping
3.2.3. @PostMapping
3.2.4. @RequestBody
3.2.5. RequestMapping with Request Parameters - @RequestParam
3.2.6. @RequestHeader - 获取 HTTP Header 信息
3.2.7. RequestMapping with Path Variables - @PathVariable
3.2.8. @MatrixVariable注解,RFC3986定义URI的路径(Path)中可包含name-value片段
3.2.9. @ModelAttribute
3.2.10. @ResponseBody
3.2.11. @ResponseStatus 设置 HTTP 状态
3.2.12. @CrossOrigin
3.2.13. @CookieValue - 获取 Cookie 值
3.2.14. @SessionAttributes
3.2.15. ModelAndView
3.2.16. HttpServletResponse
3.2.17. HttpServletRequest
3.3. @RestController
3.3.1. 接口设计中 URL 参数,FORM 参数,JSON 怎么选择
3.3.2. 返回迭代器
3.3.3. 上传文件
3.3.4. 返回实体
3.3.5. JSON
3.3.6. 处理原始 RAW JSON 数据
3.3.7. 返回 JSON 对象 NULL 专为 "" 字符串
3.3.8. XML
3.3.9. 兼容传统 json 接口
3.3.10. 上传文件
3.3.11. 下载文件
3.3.12. Mime/MediaType
3.3.13. Spring boot with csv
3.3.14. Json 处理
3.3.15. synchronized
3.3.16. Spring boot with Emitter
3.3.17. forward 转发
3.4. Springboot 4.0
3.4.1. Api 版本控制
3.5. View
3.5.1. 配置静态文件目录
3.5.2. 添加静态文件目录
3.5.3. Using Spring’s form tag library
3.5.4. Thymeleaf
3.5.5. FreeMarker
3.5.6. i18n 国际化
3.6. Spring boot with Webpage
3.6.1. Maven
3.6.2. application.properties
3.6.3. Application
3.6.4. IndexController
3.6.5. src/main/webapp/WEB-INF/jsp/index.jsp
3.6.6. 集成模板引擎
3.7. Spring boot with Velocity template
3.7.1. Maven
3.7.2. Resource
3.7.3. Application
3.7.4. RestController
3.7.5. Test
3.8. Spring boot with Thymeleaf
3.8.1. Maven
3.8.2. application.properties
3.8.3. Controller
3.8.4. HTML5 Template
3.9. 校验器(Validator)
3.9.1. 依赖
3.9.2. 常规用法
3.9.3. 常用注解
3.9.4. 在 Service 中使用 Validator 检查数据
3.9.5. 自定义注解
3.10. Interceptor/Filter 拦截器/过滤
3.10.1. Session 拦截
3.10.2. Token 拦截
3.10.3. Authorization Bearer
3.10.4. 过滤器
3.10.5. 拦截器获取PathVariable变量
3.10.6. WebMvcConfigurer 拦截
3.10.7. Session 登录拦截器
3.11. String boot with RestTemplate
3.11.1. RestTemplate Example
3.11.2. GET 操作
3.11.3. POST 操作
3.11.4. PUT 操作
3.11.5. Delete 操作
3.11.6. 上传文件
3.11.7. HTTP Auth
3.11.8. PKCS12
3.11.9. Timeout 超时设置
3.12. RestClient
3.12.1. 创建 RestClient
3.12.2. Get 操作
3.12.3. Post Json
3.12.4. HTTP Authorization Basic
3.12.5. onStatus
3.12.6. Timeout 超时设置
3.12.7. 下载二进制流
3.12.8. 上传文件
3.12.9. Springboot 4.0 Version 版本号
5. Service
5.1. Application
5.2. 定义接口
5.3. 实现接口
5.4. 调用 Service
5.5. context.getBean 调用 Service
5.6. AopContext
5.7. Service 单例/多例模式
5.7.1. Service 是单例模式
5.7.2. Service 多例实现
5.8. 构造方法
6. Tomcat Spring 运行环境
6.1. Maven
6.2. Spring MVC configuration
6.3. Tomcat
6.4. 集成 Mybatis
6.4.1. pom.xml
6.4.2. properties
6.4.3. dataSource
6.4.4. SqlSessionFactory
6.4.5. Mapper 扫描
6.4.6. Mapper 单一class映射
6.4.7. Service
6.4.8. 测试实例
7. WebFlux framework
7.1. Getting Started
7.1.1. Maven
7.1.2. Application
7.1.3. RestController
7.1.4. 测试
7.2. WebFlux 与 SprintMVC 有什么不同?
7.2.1. 实验程序
7.2.2. 实验结果
7.3. WebFlux Router
7.3.1. Component 原件
7.3.2. 路由配置
7.4. RestController
7.4.1. Post 数据
7.4.2. Thymeleaf
7.4.3. Mono
7.4.4. Flux 返回多条数据
7.4.5. SSE
7.4.6. 末尾连接字符串
7.4.7. Flux scan
7.4.8. ConnectableFlux
7.4.9. 上传文件并保存
7.5. Newline Delimited JSON (NDJSON)
7.6. WebClient
7.6.1. 配置 WebClient
7.6.2. @Controller/@RestController 实例
7.6.3. Get 请求实例
7.6.4. URI 参数
7.6.5. 查询参数
7.6.6. Post 操作演示
7.6.7. Post 表单数据
7.6.8. 上传文件
7.6.9. 设置 HTTP 头
7.6.10. 同步阻塞等待返回结果
7.6.11. websocket
7.6.12. 获取 HTTP 链接状态
7.6.13. Http Base Authentication - 401 Unauthorized
7.6.14. SSE(Server-Sent Events)
7.6.15. 超时时间
7.6.16. share() 共享订阅数据
7.6.17. 打印调试日志
7.6.18. 解决 WebClient 截断 URI的问题
7.6.19. 异常处理
7.7. Webflux 安全
7.7.1. Token 拦截器
7.7.2. JWT
7.7.3. spring-boot-starter-security
7.8. R2DBC
7.8.1. MySQL
7.8.2. R2dbcEntityTemplate
7.8.3. MySQL Point 数据类型
7.9. Webflux Redis
7.9.1. Maven Redis 依赖
7.9.2. Redis 配置
7.9.3. Config
7.9.4. Service
7.9.5. RestController
7.10. Webflux Mongdb
7.10.1. Maven 依赖
7.10.2. Repository
7.10.3. Service
7.10.4. 控制器
7.11. 常见问题
7.11.1. The Java/XML config for Spring MVC and Spring WebFlux cannot both be enabled, e.g. via @EnableWebMvc and @EnableWebFlux, in the same application.
7.11.2. @EnableWebFluxSecurity 与 @EnableReactiveMethodSecurity 不生效
7.11.3. webflux netty 不支持 Content-Type: application/x-www-form-urlencoded