Home
|
简体中文
|
繁体中文
|
杂文
|
Github
|
知乎专栏
|
Facebook
|
Linkedin
|
Youtube
|
打赏(Donations)
|
About
部分 IV. Spring Framework
上一页
下一页
知乎专栏
部分 IV. Spring Framework
目录
27. Spring 框架
27.1. @Bean
27.1.1. @Scope 定义类型
27.1.2. InitializingBean
27.2. URL 拼装/解析
27.3. ServletUriComponentsBuilder
27.4. URL 路径相关
27.5. 声明式 HTTP 客户端 HttpExchange
27.5.1. 支持的注解类型
27.5.2. RestClient 例子
27.5.3. HTTP 头设置
28. Spring WebMVC
28.1. @EnableWebMvc
28.1.1. @PostConstruct
28.2. @Controller
28.2.1. @RequestMapping
28.2.2. @GetMapping
28.2.3. @PostMapping
28.2.4. @RequestBody
28.2.5. RequestMapping with Request Parameters - @RequestParam
28.2.6. @RequestHeader - 获取 HTTP Header 信息
28.2.7. RequestMapping with Path Variables - @PathVariable
28.2.8. @MatrixVariable注解,RFC3986定义URI的路径(Path)中可包含name-value片段
28.2.9. @ModelAttribute
28.2.10. @ResponseBody
28.2.11. @ResponseStatus 设置 HTTP 状态
28.2.12. @CrossOrigin
28.2.13. @CookieValue - 获取 Cookie 值
28.2.14. @SessionAttributes
28.2.15. ModelAndView
28.2.16. HttpServletResponse
28.2.17. HttpServletRequest
28.3. @RestController
28.3.1. 接口设计中 URL 参数,FORM 参数,JSON 怎么选择
28.3.2. 返回迭代器
28.3.3. 上传文件
28.3.4. 返回实体
28.3.5. JSON
28.3.6. 处理原始 RAW JSON 数据
28.3.7. 返回 JSON 对象 NULL 专为 "" 字符串
28.3.8. XML
28.3.9. 兼容传统 json 接口
28.3.10. 上传文件
28.3.11. 下载文件
28.3.12. Mime/MediaType
28.3.13. Spring boot with csv
28.3.14. Json 处理
28.3.15. synchronized
28.3.16. Spring boot with Emitter
28.3.17. forward 转发
28.4. Springboot 4.0
28.4.1. Api 版本控制
28.5. View
28.5.1. 配置静态文件目录
28.5.2. 添加静态文件目录
28.5.3. Using Spring’s form tag library
28.5.4. Thymeleaf
28.5.5. FreeMarker
28.5.6. i18n 国际化
28.6. Spring boot with Webpage
28.6.1. Maven
28.6.2. application.properties
28.6.3. Application
28.6.4. IndexController
28.6.5. src/main/webapp/WEB-INF/jsp/index.jsp
28.6.6. 集成模板引擎
28.7. Spring boot with Velocity template
28.7.1. Maven
28.7.2. Resource
28.7.3. Application
28.7.4. RestController
28.7.5. Test
28.8. Spring boot with Thymeleaf
28.8.1. Maven
28.8.2. application.properties
28.8.3. Controller
28.8.4. HTML5 Template
28.9. 校验器(Validator)
28.9.1. 依赖
28.9.2. 常规用法
28.9.3. 常用注解
28.9.4. 在 Service 中使用 Validator 检查数据
28.9.5. 自定义注解
28.10. Interceptor/Filter 拦截器/过滤
28.10.1. Session 拦截
28.10.2. Token 拦截
28.10.3. Authorization Bearer
28.10.4. 过滤器
28.10.5. 拦截器获取PathVariable变量
28.10.6. WebMvcConfigurer 拦截
28.10.7. Session 登录拦截器
28.11. String boot with RestTemplate
28.11.1. RestTemplate Example
28.11.2. GET 操作
28.11.3. POST 操作
28.11.4. PUT 操作
28.11.5. Delete 操作
28.11.6. 上传文件
28.11.7. HTTP Auth
28.11.8. PKCS12
28.11.9. Timeout 超时设置
28.12. RestClient
28.12.1. 创建 RestClient
28.12.2. Get 操作
28.12.3. Post Json
28.12.4. HTTP Authorization Basic
28.12.5. onStatus
28.12.6. Timeout 超时设置
28.12.7. 下载二进制流
28.12.8. 上传文件
28.12.9. Springboot 4.0 Version 版本号
30. Service
30.1. Application
30.2. 定义接口
30.3. 实现接口
30.4. 调用 Service
30.5. context.getBean 调用 Service
30.6. AopContext
30.7. Service 单例/多例模式
30.7.1. Service 是单例模式
30.7.2. Service 多例实现
30.8. 构造方法
31. Tomcat Spring 运行环境
31.1. Maven
31.2. Spring MVC configuration
31.3. Tomcat
31.4. 集成 Mybatis
31.4.1. pom.xml
31.4.2. properties
31.4.3. dataSource
31.4.4. SqlSessionFactory
31.4.5. Mapper 扫描
31.4.6. Mapper 单一class映射
31.4.7. Service
31.4.8. 测试实例
32. WebFlux framework
32.1. Getting Started
32.1.1. Maven
32.1.2. Application
32.1.3. RestController
32.1.4. 测试
32.2. WebFlux 与 SprintMVC 有什么不同?
32.2.1. 实验程序
32.2.2. 实验结果
32.3. WebFlux Router
32.3.1. Component 原件
32.3.2. 路由配置
32.4. RestController
32.4.1. Post 数据
32.4.2. Thymeleaf
32.4.3. Mono
32.4.4. Flux 返回多条数据
32.4.5. SSE
32.4.6. 末尾连接字符串
32.4.7. Flux scan
32.4.8. ConnectableFlux
32.4.9. 上传文件并保存
32.5. Newline Delimited JSON (NDJSON)
32.6. WebClient
32.6.1. 配置 WebClient
32.6.2. @Controller/@RestController 实例
32.6.3. Get 请求实例
32.6.4. URI 参数
32.6.5. 查询参数
32.6.6. Post 操作演示
32.6.7. Post 表单数据
32.6.8. 上传文件
32.6.9. 设置 HTTP 头
32.6.10. 同步阻塞等待返回结果
32.6.11. websocket
32.6.12. 获取 HTTP 链接状态
32.6.13. Http Base Authentication - 401 Unauthorized
32.6.14. SSE(Server-Sent Events)
32.6.15. 超时时间
32.6.16. share() 共享订阅数据
32.6.17. 打印调试日志
32.6.18. 解决 WebClient 截断 URI的问题
32.6.19. 异常处理
32.7. Webflux 安全
32.7.1. Token 拦截器
32.7.2. JWT
32.7.3. spring-boot-starter-security
32.8. R2DBC
32.8.1. MySQL
32.8.2. R2dbcEntityTemplate
32.8.3. MySQL Point 数据类型
32.9. Webflux Redis
32.9.1. Maven Redis 依赖
32.9.2. Redis 配置
32.9.3. Config
32.9.4. Service
32.9.5. RestController
32.10. Webflux Mongdb
32.10.1. Maven 依赖
32.10.2. Repository
32.10.3. Service
32.10.4. 控制器
32.11. 常见问题
32.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.
32.11.2. @EnableWebFluxSecurity 与 @EnableReactiveMethodSecurity 不生效
32.11.3. webflux netty 不支持 Content-Type: application/x-www-form-urlencoded