Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@funky-eyes
Copy link
Contributor

@funky-eyes funky-eyes commented Jan 25, 2026

Ⅰ. Describe what this PR did

2026-01-25 17:27:11.915  INFO --- [main] [org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext] [prepareWebApplicationContext] []: Root WebApplicationContext: initialization completed in 790 ms
2026-01-25 17:27:12.097  INFO --- [main] [org.apache.seata.console.security.CustomUserDetailsServiceImpl] [init] []: No password was configured. A random password has been generated for security purposes. You may either:
1. Use the auto-generated password: [a79a0b20]
2. Set a custom password in the configuration.
2026-01-25 17:27:12.336  INFO --- [main] [org.apache.seata.namingserver.service.ConsoleLocalServiceImpl] [<init>] []: ConsoleLocalServiceImpl initialized.
2026-01-25 17:27:12.395  INFO --- [main] [org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping] [<init>] []: Adding welcome page: class path resource [static/index.html]
2026-01-25 17:27:12.519  INFO --- [main] [org.springframework.security.config.annotation.authentication.configuration.InitializeAuthenticationProviderBeanManagerConfigurer$InitializeAuthenticationProviderManagerConfigurer] [configure] []: Global AuthenticationManager configured with AuthenticationProvider bean with name customAuthenticationProvider
2026-01-25 17:27:12.519  WARN --- [main] [org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer$InitializeUserDetailsManagerConfigurer] [configure] []: Global AuthenticationManager configured with an AuthenticationProvider bean. UserDetailsService beans will not be used by Spring Security for automatically configuring username/password login. Consider removing the AuthenticationProvider bean. Alternatively, consider using the UserDetailsService in a manually instantiated DaoAuthenticationProvider. If the current configuration is intentional, to turn off this warning, increase the logging level of 'org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer' to ERROR
2026-01-25 17:27:12.772  INFO --- [main] [org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration] [info] []: Enable tools capabilities, notification: true
2026-01-25 17:27:12.772  INFO --- [main] [org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration] [info] []: Registered tools: 15
2026-01-25 17:27:12.772  INFO --- [main] [org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration] [info] []: Enable resources capabilities, notification: true
2026-01-25 17:27:12.773  INFO --- [main] [org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration] [info] []: Enable resources templates capabilities, notification: true
2026-01-25 17:27:12.773  INFO --- [main] [org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration] [info] []: Enable prompts capabilities, notification: true
2026-01-25 17:27:12.774  INFO --- [main] [org.springframework.ai.mcp.server.common.autoconfigure.McpServerAutoConfiguration] [info] []: Enable completions capabilities
2026-01-25 17:27:12.887  INFO --- [main] [org.apache.coyote.http11.Http11NioProtocol] [log] []: Starting ProtocolHandler ["http-nio-8081"]
2026-01-25 17:27:12.902  INFO --- [main] [org.springframework.boot.web.embedded.tomcat.TomcatWebServer] [start] []: Tomcat started on port 8081 (http) with context path '/'
2026-01-25 17:27:12.910  INFO --- [main] [org.apache.seata.namingserver.NamingserverApplication] [logStarted] []: Started NamingserverApplication in 2.428 seconds (process running for 2.7)
2026-01-25 17:27:12.912  INFO --- [main] [org.apache.seata.namingserver.NamingserverApplication] [run] []: Seata Console can be accessed at http://localhost:8081

Ⅱ. Does this pull request fix one issue?

fixes #7958

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bean loading issue where ConsoleApiService could not be found after packaging, due to bean loading order/priority changes when not using a fat JAR approach. The fix addresses cross-module conditional dependencies by using more appropriate conditional bean annotations.

Changes:

  • Modified ConsoleLocalServiceImpl to conditionally load based on NamingServerLocalMarkerImpl (same module) instead of ConsoleRemoteServiceImpl (different module)
  • Modified ConsoleRemoteServiceImpl to conditionally load based on bean name "consoleLocalServiceImpl" instead of NamingServerLocalMarker interface
  • Added logging statements to track bean initialization
  • Updated changelog entries for version 2.6.0

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
namingserver/src/main/java/org/apache/seata/namingserver/service/ConsoleLocalServiceImpl.java Changed conditional bean loading from cross-module class dependency to same-package class, removed unused import, added initialization logging
console/src/main/java/org/apache/seata/mcp/service/impl/ConsoleRemoteServiceImpl.java Changed conditional bean loading to use bean name instead of interface, removed unused import, added initialization logging
changes/zh-cn/2.6.0.md Added Chinese changelog entry for the fix
changes/en-us/2.6.0.md Added English changelog entry for the fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@funky-eyes funky-eyes merged commit 19a14d6 into apache:2.6.0 Jan 25, 2026
6 checks passed
@funky-eyes funky-eyes added this to the 2.6.0 milestone Jan 28, 2026
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.

1 participant