Skip to content

chore(deps): spring-boot upgrade from 3.5.14 to 4.0.6#14945

Open
xuxiaowei-com-cn wants to merge 30 commits into
alibaba:developfrom
xuxiaowei-com-cn:xuxiaowei/spring-boot-4
Open

chore(deps): spring-boot upgrade from 3.5.14 to 4.0.6#14945
xuxiaowei-com-cn wants to merge 30 commits into
alibaba:developfrom
xuxiaowei-com-cn:xuxiaowei/spring-boot-4

Conversation

@xuxiaowei-com-cn
Copy link
Copy Markdown
Contributor

@xuxiaowei-com-cn xuxiaowei-com-cn commented Apr 16, 2026

#14944

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

XXXXX

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check spotbugs:check -DskipTests to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.

@github-actions
Copy link
Copy Markdown

Thanks for your this PR. 🙏
Please check again for your PR changes whether contains any usage/api/configuration change such as Add new API , Add new configuration, Change default value of configuration.
If so, please add or update documents(markdown type) in docs/next/ for repository nacos-group/nacos-group.github.io


感谢您提交的PR。 🙏
请再次查看您的PR内容,确认是否包含任何使用方式/API/配置参数的变更,如:新增API新增配置参数修改默认配置等操作。
如果是,请确保在提交之前,在仓库nacos-group/nacos-group.github.io中的docs/next/目录下添加或更新文档(markdown格式)。

@xuxiaowei-com-cn xuxiaowei-com-cn force-pushed the xuxiaowei/spring-boot-4 branch from 4665f47 to b009b64 Compare April 16, 2026 18:21
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@xuxiaowei-com-cn xuxiaowei-com-cn force-pushed the xuxiaowei/spring-boot-4 branch from 54202e6 to 217dae4 Compare April 20, 2026 03:24
@xuxiaowei-com-cn xuxiaowei-com-cn force-pushed the xuxiaowei/spring-boot-4 branch from 217dae4 to 9f3fa62 Compare April 23, 2026 12:39
@xuxiaowei-com-cn xuxiaowei-com-cn changed the title chore(deps): spring-boot upgrade from 3.4.10 to 4.0.5 chore(deps): spring-boot upgrade from 3.5.13 to 4.0.5 May 1, 2026
@xuxiaowei-com-cn xuxiaowei-com-cn force-pushed the xuxiaowei/spring-boot-4 branch from 944dfb6 to 2db282d Compare May 1, 2026 17:20
@xuxiaowei-com-cn
Copy link
Copy Markdown
Contributor Author

@xuxiaowei-com-cn
Copy link
Copy Markdown
Contributor Author

xuxiaowei-com-cn commented May 6, 2026

  • xuxiaowei-com-cn@23ec52e
  • Spring Boot 4 中,*Controller.java 使用 com.fasterxml.jackson.databind.node.ObjectNode 返回数据时,序列化异常,只能得到固定数据:
9f70e0b086be0b8e6378c93fc4ba4529

@xuxiaowei-com-cn xuxiaowei-com-cn force-pushed the xuxiaowei/spring-boot-4 branch from 8afbcc2 to 23ec52e Compare May 6, 2026 03:42
@xuxiaowei-com-cn xuxiaowei-com-cn changed the title chore(deps): spring-boot upgrade from 3.5.13 to 4.0.5 chore(deps): spring-boot upgrade from 3.5.13 to 4.0.6 May 8, 2026
# Conflicts:
#	config/src/test/java/com/alibaba/nacos/config/server/aspect/ConfigChangeAspectTest.java
#	config/src/test/java/com/alibaba/nacos/config/server/controller/ConfigServletInnerTest.java
#	config/src/test/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3Test.java
#	config/src/test/java/com/alibaba/nacos/config/server/controller/v3/ConfigOpsControllerV3Test.java
#	config/src/test/java/com/alibaba/nacos/config/server/controller/v3/ListenerControllerV3Test.java
#	config/src/test/java/com/alibaba/nacos/config/server/service/dump/DefaultHistoryConfigCleanerTest.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/OperatorMetricsV1Controller.java
…boot-4

# Conflicts:
#	ai/src/test/java/com/alibaba/nacos/ai/controller/SkillClientControllerTest.java
#	console/src/main/java/com/alibaba/nacos/console/config/ConsoleWebConfig.java
#	console/src/test/java/com/alibaba/nacos/console/controller/v3/config/ConsoleConfigControllerTest.java
#	plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/configuration/core/NacosAuthPluginCoreConfig.java
#	plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/controller/UserController.java
#	plugin-default-impl/nacos-default-auth-plugin/src/main/java/com/alibaba/nacos/plugin/auth/impl/controller/v3/UserControllerV3.java
#	plugin-default-impl/nacos-default-auth-plugin/src/test/java/com/alibaba/nacos/plugin/auth/impl/controller/v3/UserControllerV3Test.java
…line indentation whitespace to match develop

Blank lines adjacent to @mock → @MockitoBean changes lost their
indentation spaces (e.g., 4 spaces became empty). Restore the
original whitespace to minimize unrelated diff noise.
…te micrometer version override in pom.xml

The old 1.13.0 override was superseded by 1.15.10 (for Spring Boot
upgrade compatibility, see alibaba#15033). Having two definitions is
confusing; only the latter takes effect in Maven.
…line indentation whitespace to match develop
Assisted-by: Claude Code
# Conflicts:
#	.github/workflows/it-new.yml
#	config/src/test/java/com/alibaba/nacos/config/server/controller/v3/ConfigOpsControllerV3Test.java
#	config/src/test/java/com/alibaba/nacos/config/server/exception/GlobalExceptionHandlerTest.java
#	config/src/test/java/com/alibaba/nacos/config/server/service/capacity/CapacityServiceTest.java
# Conflicts:
#	.github/workflows/it-new.yml
#	config/src/test/java/com/alibaba/nacos/config/server/controller/v3/ConfigOpsControllerV3Test.java
#	config/src/test/java/com/alibaba/nacos/config/server/exception/GlobalExceptionHandlerTest.java
#	config/src/test/java/com/alibaba/nacos/config/server/service/capacity/CapacityServiceTest.java
# Conflicts:
#	ai/src/test/java/com/alibaba/nacos/ai/controller/SkillClientControllerTest.java
#	config/src/test/java/com/alibaba/nacos/config/server/controller/v3/ConfigControllerV3Test.java
#	plugin-default-impl/nacos-default-auth-plugin/src/test/java/com/alibaba/nacos/plugin/auth/impl/controller/UserControllerTest.java
#	plugin-default-impl/nacos-default-auth-plugin/src/test/java/com/alibaba/nacos/plugin/auth/impl/controller/v3/UserControllerV3Test.java
#	pom.xml
@xuxiaowei-com-cn xuxiaowei-com-cn force-pushed the xuxiaowei/spring-boot-4 branch from eb53c8c to de995c2 Compare May 29, 2026 17:25
Copy link
Copy Markdown
Contributor Author

@xuxiaowei-com-cn xuxiaowei-com-cn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xuxiaowei-com-cn xuxiaowei-com-cn changed the title chore(deps): spring-boot upgrade from 3.5.13 to 4.0.6 chore(deps): spring-boot upgrade from 3.5.14 to 4.0.6 May 30, 2026
# Conflicts:
#	test/openapi-test/src/test/java/com/alibaba/nacos/test/openapi/client/config/ConfigOpenApiITCase.java
Comment thread ai-registry-adaptor/pom.xml
Comment thread console/pom.xml
Comment thread console/pom.xml Outdated
Comment thread server/pom.xml
@xuxiaowei-com-cn xuxiaowei-com-cn mentioned this pull request Jun 2, 2026
@xuxiaowei-com-cn
Copy link
Copy Markdown
Contributor Author

@KomachiSion

  • org.springframework.boot:spring-boot-autoconfigure 中的东西太多,太杂了,之前是一股脑的把所有配置放在里面,包比较大
  • org.springframework.boot:spring-boot-autoconfigure 从 Spring Boot 4 开始,都拆分出去了,比如 org.springframework.boot:spring-boot-starter-ldap
  • 因为项目中使用过 ldap,所以必须引入 org.springframework.boot:spring-boot-starter-ldap 依赖
image image

@xuxiaowei-com-cn
Copy link
Copy Markdown
Contributor Author

从另一个角度看,org.springframework.boot:spring-boot-starter-ldap 起始版本是 4.0,说明 4.0 之前 ldap 是放在其他地方的

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants