14 Commits

Author SHA1 Message Date
徐晓伟 4bec8b06c5 chore(deps): spring-boot upgrade from 3.5.14 to 4.0.6 (#14945)
* chore(deps): spring-boot upgrade from 3.4.10 to 4.0.5

* chore(deps): micrometer upgrade from 1.12.8 to 1.13.0

* chore(deps): replace javax.annotation with jakarta.annotation

* chore(deps): spring-boot upgrade from 3.4.10 to 4.0.5

* chore(deps): spring-boot upgrade from 3.4.10 to 4.0.5: fix controller response

* chore(deps): spring-boot upgrade from 4.0.5 to 4.0.6

* chore(deps): spring-boot upgrade from 3.5.13 to 4.0.6: Restore blank 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.

* chore(deps): spring-boot upgrade from 3.5.13 to 4.0.6: Remove duplicate micrometer version override in pom.xml

The old 1.13.0 override was superseded by 1.15.10 (for Spring Boot
upgrade compatibility, see #15033). Having two definitions is
confusing; only the latter takes effect in Maven.

* chore(deps): spring-boot upgrade from 3.5.13 to 4.0.6: Restore blank line indentation whitespace to match develop

* style: apply spotless formatting fixes

Assisted-by: Claude Code

* Merge branch 'develop' into xuxiaowei/spring-boot-4

# 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

* style: apply spotless formatting

* chore(build): bump MCP SDK from 0.17.0 to 0.18.2

Assisted-by: Claude Code

* Remove spring-boot-starter-ldap-test dependency from console module

* Apply spotless formatting to ConfigOpenApiITCase

* Update TomcatConnectorCustomizer import for Spring Boot 4 compatibility

Assisted-by: Claude Code

* Replace ObjectNode with Map<String, Object> in ClientService API for Spring Boot 4 compatibility

* Remove redundant dependencies from test aggregator POM for Spring Boot 4 compatibility

* Makefile: Enhance Makefile for local dev workflow: add auth-disabled args, release-nacos profile, and IT test targets

* Makefile: Extract auth-disabled JVM args into standalone AUTH_DISABLED_ARGS variable

* Makefile: Add missing IT test targets to .PHONY declaration

Assisted-by: Claude Code

* build(deps): Refactor LDAP dependency: move spring-boot-starter-ldap to nacos-ldap-auth-plugin only

* build(deps): Add nacos-ldap-auth-plugin dependency to nacos-server module

* build(deps): Add nacos-ldap-auth-plugin dependency to nacos-console module

* build(deps): Remove nacos-ldap-auth-plugin dependency and LdapAutoConfiguration exclusion

* build(deps): Remove nacos-ldap-auth-plugin dependency and LdapAutoConfiguration exclusion

* Remove ConfigInfoBetaPersistService references and fix formatting in tests

Assisted-by: Claude Code

* Migrate javax.annotation to jakarta.annotation for Spring Boot 4 compatibility

Replace javax.annotation.{PostConstruct,PreDestroy,Resource} imports and
native-image reflect-config entries with jakarta.annotation equivalents.

* Add issue link for Makefile usage guide (#15338)

* Add test, check-maven, build-maven-test targets to Makefile (#15338)

---------

Co-authored-by: 杨翊 SionYang <xiweng.yy@alibaba-inc.com>
2026-06-10 10:08:48 +08:00
cxhello 49f645b28a [ISSUE #14815] build(style): align Checkstyle with Spotless and enable spotless:check in CI (#15117)
- Change lineWrappingIndentation from 0 to 4 to match continuation_indentation=1
- Change arrayInitIndent from 8 to 4 to match continuation_indentation_for_array_initializer=1
- Remove all // @formatter:off/on workarounds (no longer needed)
- Re-format modules affected by continuation_indentation_for_array_initializer change
- Add checkstyle:check and spotless:check to CI check step

Signed-off-by: cxhello <caixiaohuichn@gmail.com>
2026-05-11 10:22:17 +08:00
cxhello f085e06392 [ISSUE #14815] build(style): apply Spotless formatting to small modules (#15111)
Modules: logger-adapter-impl, cmdb, address, prometheus, server, example, bootstrap

Signed-off-by: cxhello <caixiaohuichn@gmail.com>
2026-05-09 18:02:12 +08:00
杨翊 SionYang 3f9d890465 chore(config): remove default property files and enable servlet encoding. (#14854)
chore(config): enable and configure UTF-8 servlet encoding.
2026-04-03 17:38:24 +08:00
杨翊 SionYang cabddd3438 refactor(server): unify component scanning with custom package exclude filters. (#14468)
Change-Id: Ibe550441195d3171d3a96664830c152ebb98ad7c
2026-02-25 10:18:30 +08:00
Eric Wang e970395936 [ISSUE #14122] Activate dev profile by default for plugin dependencies (#14125)
* feat(build): activate dev profile by default for plugin dependencies

* feat: Support JDK 17+ and macOS ARM64, update dependencies
- [istio] Upgrade os-maven-plugin to 1.7.1 for macOS ARM64 support.
- [istio] Split protobuf-maven-plugin executions to prevent file locking issues.
- [bootstrap] Add dev profile to include default plugins for development.
2026-02-06 15:13:54 +08:00
Eric Wang 7d48d1605b [ISSUE #14048] Refactor datasource plugins structure and enhance PostgreSQL capabilities (#14056)
* feat(plugin): centralize datasource plugin management

* feat(plugin): Migrate datasource dialect and enum implementations to plugin-default-impl
 - Migrate DatabaseDialect implementations (5 files) using git mv
 - Migrate Enum classes (5 files) using git mv
 - Migrate related tests (19 files) using git mv
 - Update DatabaseDialectManager to use SPI-loaded dialects
 - Update SPI service file paths
 - Update import statements in mapper implementations
 - Preserve git history for all migrated files

* fix: Fix missing SPI registration and test compilation issues

* fix(console): decouple console module from nacos-default-auth-plugin

* feat(datasource): add PostgreSQL schema and dependency integration

- Add PostgreSQL schema file `pg-schema.sql` with initial table structures and constraints.
- Include PostgreSQL JDBC dependency in project and module `pom.xml` files.

* fix(test): resolve core-test compilation failure after auth plugin migration

* fix(test): mock MapperManager in NamespacePersistService tests

* fix(test): add test scope dependency

* feat(datasource): implement PostgreSQL datasource mappers and schema

1. Schema Support:
   - Update PostgreSQL table schema in pg-schema.sql.

2. Mapper Implementations:
   - Implement GroupCapacityMapperByPostgresql and TenantCapacityMapperByPostgresql.
   - Implement ConfigTagsRelationMapperByPostgresql with fuzzy search support.
   - Add ConfigInfoGrayMapperByPostgresql and ConfigMigrateMapperByPostgresql.
   - Register new mappers in META-INF/services SPI file.
2025-12-29 11:12:54 +08:00
杨翊 SionYang 6672e6d2df [#13458] Fix nacos start up failure when set functionMode is config or naming. (#13564)
* Add AiEnabledFilter.

* Add K8sSyncEnabledFilter

* Add condition to load inner handler and remote handle. And add noop implementation.

* hide mcp management page when functionMode is config or naming.
2025-06-26 16:48:40 +08:00
杨翊 SionYang b312d043d1 Do some refactor for 3.0 api (#13207)
* Close nacos server access static resource to show ui.

* Change get service subscribe api to accurate not fuzzy search.

* Change reloadCount,smartReload,reloadSingle to POST method for v3 admin api.

* Refactor server loader v3 admin api controller.

* Refactor health update api parameters transfer.

* Refactor instance operator parameter transfer.
2025-03-26 11:23:29 +08:00
杨翊 SionYang 07c293a53c Refactor nacos default auth plugin to inject HTTP API by AutoConfiguration. (#13142)
* Support refresh nacos server member in console model.

* Mark old NamingMaintainService as deprecated.

* Use Import replace directly build Nacos Auth plugin bean in console.

* Using AutoConfiguration to inject nacos default auth plugin HTTP API.
2025-02-27 19:09:54 +08:00
杨翊 SionYang 2c025e20ec V3.0 develop console mode (#13134)
* Use Page to replace List result for some maintainer api.

* Support namespace page.

* uniform Namespace model to api。

* Support console get server state from nacos-server

* Fix update namespace invalid problem.

* console support setting admin password.

* Add Console maintainer client auth plugin to support identity request.

* Support Nacos Console get users info from nacos server.

* Support Nacos Console get role and permission info from nacos server.

* Fix NPE by AuthConfig loading Circular Dependencies.
2025-02-25 18:27:01 +08:00
杨翊 SionYang 05362b0b90 V3.0 develop starting listening enhance & fix console auth invalid problem. (#13001)
* Enhance StartingApplicationListener to reduce duplicate operation.

* Fix console auth invalid problem.
2024-12-30 17:51:49 +08:00
杨翊 SionYang 8478fd7204 Enhance to reuse duplicate spring beans to reduce memory usage. (#12990) 2024-12-25 15:17:06 +08:00
杨翊 SionYang 1609df97df [Nacos 3.0] Nacos support console and server start with different web container and port. (#12959)
* Support console and server api with depend port.

* enhance banners and support only start server mode.
2024-12-17 15:33:47 +08:00