spring-guides / getting-started-guides

Getting Started Guide template :: The template for new guides and also the place to request them.
https://github.com/spring-guides/getting-started-guides/wiki
Apache License 2.0
521 stars 204 forks source link

Report possible content error #42

Closed RSLi closed 7 years ago

RSLi commented 7 years ago

On https://spring.io/guides/gs/handling-form-submission/, in the sample code of src/main/java/hello/GreetingController.java, @ModelAttribute Greeting greeting does not work unless it is written as @ModelAttribute(value="greeting") Greeting greeting

dsyer commented 7 years ago

Each guide has it's own github repository. That one is here: https://github.com/spring-guides/gs-handling-form-submission. But you don't need the value=, so there's something odd about your JVM probably. Did you try it with an up to date Java 8?

RSLi commented 7 years ago

Thanks a lot. I'm sure my JVM is up to date and will do some further investigation on that. Thanks!