Comments (2)
No, form url point of view, GET:/heroes and GET:/heroes?id=123 is same because url param is not mandatory.
from spring-boot.
This is by design - the @*Mapping
annotation needs to described what the requests should look like to be mapped there. Checking the actual method signature is only done as a second step when invoking the handler.
@GetMapping(params = "id")
should solve the problem here. For further questions, please use StackOverflow.
from spring-boot.
Related Issues (20)
- Support Gradle Plugin BootRun on a feature variant HOT 4
- AnsiOutput.detectIfAnsiCapable broken on JDK22 HOT 6
- Upgrade CI to Docker 26.0.0
- Upgrade CI to Docker 26.0.1
- Upgrade CI to Docker 26.0.0
- Clarify requirements for -parameters and constructor binding
- Apply instanceof pattern matching
- Apply instanceof pattern matching
- SpringBoot 3.2.4 + GraalVM 21 + observability => issue building NATIVE image => com.oracle.svm.core.util.VMError$HostedError class: io.opentelemetry.sdk.common.export.RetryPolicy
- Gradle test - Out of memory after upgrading from 3.1.6 to 3.2.4 HOT 10
- Jetty support doesn't set virtual thread name
- Spring-boot 3.2.3 Not working as a windows wrapper service HOT 4
- Suggest testAndDevelopmentOnly configuration when using Docker Compose support in tests HOT 6
- Enhance Readability: Add Comments to H2ConsoleAutoConfiguration Class HOT 2
- Kafka consumer related auto-config takes effect even if we are overdefining it HOT 3
- @ConfigurationProperties doesn't properly support Yaml null values HOT 1
- spring.jpa.generate-ddl: true cause schema update even if hibernate options not set HOT 11
- Log4j2LoggingSystem pollutes Log4j2's environment with a SpringEnvironmentPropertySource that is never removed HOT 7
- How to run spring boot web app with http2? HOT 4
- Update JOOQ documentation to explain the compatibility between Spring and JOOQ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.