2024-11-13|今天我做了什么
Spring 周报
This Week in Spring - November 12th, 2024
integrate Langchain4J with Spring is pretty amazing:SpringBoot 集成 Langchain4J
fake OAuth 2 single sign on in a Spring application
- 使用 MockMvc
- 使用 WireMock
get started with
pgvector
, the module for vector stores in PostgreSQLSpring AI has natiuve support for Kotlin! Nice!:Spring AI Native 支持 Kotlin
JEP 483, landing in Java 24, introduces AOT class loading and linking
synchronize virtual threads without pinning: Java 24 新特性
本地 Authorization Server
Tanzu 开发了一个本地的 Spring Authorization Server,相关介绍参考下面两篇文章。
可以从 这里 下载(需要登录)最新版本的 jar。下载成功之后,运行:
java -jar tanzu-local-authorization-server-<VERSION>.jar
用户名和密码在控制台:
🧑 You can log in with the following users:
---
username: user
password: password
该应用是一个 Spring Boot 项目,默认配置如下:
security:
oauth2:
client:
registration:
tanzu-local-authorization-server:
client-id: default-client-id
client-secret: default-client-secret
client-name: Tanzu Local Authorization Server
scope:
- openid
- email
- profile
provider:
tanzu-local-authorization-server:
issuer-uri: http://localhost:9000
更详细的说明,可以参考上面的链接。示例源代码地址:https://github.com/Kehrlann/tlas-client-demo 。
类似的,可以作为本地的 Authorization Server 的还有:
Spring Boot 发送邮件
使用 Mailpit Using Mailpit with Spring Boot
使用 Mailhog Using MailHog via Docker for testing email
使用 Maildev
Related content
- 2024-11-07|今天我做了什么
- 2024-11-06|今天我做了什么
- 2024-11-05|今天我做了什么
- 2024-11-04|SivaLabs博客文章
- 2024-02-20|RateLimitAspect请求限流、调整spring-cloud-examples项目结构
- 2024-02-19|foodie-cloud集成Sharding Sphere实现读写分离
- 2024-02-18|NewRelice应用性能监控、6个Diagrams工具、foodie-food测试
- 2024-02-05|Spring Cloud Config快速入门
- 2024-02-04|foodie-cloud集成Resilience4j
- 2024-02-02|foodie-cloud集成Spring Cloud Config和SpringDoc