Skip to content

fix issue #1154#1161

Open
xuhuafeifei wants to merge 10 commits intoagentscope-ai:mainfrom
xuhuafeifei:fix_issue_1154
Open

fix issue #1154#1161
xuhuafeifei wants to merge 10 commits intoagentscope-ai:mainfrom
xuhuafeifei:fix_issue_1154

Conversation

@xuhuafeifei
Copy link
Copy Markdown
Contributor

AgentScope-Java Version

[The version of AgentScope-Java you are working on, e.g. 1.0.11, check your pom.xml dependency version or run mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]

Description

When using Spring Boot + A2A protocol, configuring server.servlet.context-path is ineffective, and the generated agent-card.json does not include the context-path in the URL.​

Checklist

Changes

Added a path field to DeploymentProperties.

AgentscopeA2aAutoConfiguration reads server.servlet.context-path and sets it to DeploymentProperties.

AgentScopeA2aServer uses the path when building the default Transport.

Added relevant unit tests.

Testing method

Start the service after configuring server.servlet.context-path=/api, then check whether the URL in .well-known/agent-card.json contains /api.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@xuhuafeifei xuhuafeifei requested a review from a team April 8, 2026 11:58
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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