hantsy/angularjs-springmvc-sample-boot

[Request method 'GET' not supported]

brunocortes06 opened this issue · 5 comments

After installing the project, i get:

2017-03-14 12:03:24.183 DEBUG 12120 --- [nio-9000-exec-4] c.h.r.s.s.SimpleUserDetailsServiceImpl : found by username @admin 2017-03-14 12:03:24.298 DEBUG 12120 --- [nio-9000-exec-4] c.h.r.s.api.RestExceptionHandler : handling exception... 2017-03-14 12:03:24.298 WARN 12120 --- [nio-9000-exec-4] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported

When i try to login

@brunocortes06 Please follow the steps of README.md to run this project, and let me know which step you get errors.

already did this, i get this error when i try to login, and if i open the project on eclipse for example, i get some compile error of missing methods.

maybe i am using something with a different version, my node is v6.10.0.

CurrentUserController line 41 user.getId(): The method getId() is undefined for the type User

@brunocortes06 I can NOT get info about the problem from your description here.

  1. Use Node 4 and have a try.
  2. Follow the steps in README
  3. My codes is IDE neutrally. For your Eclipse error, you have to know how to configure Maven, AspectJ, Lombok in your IDE.

Same issue just did a clone and launched it all from command line and cannot log in.

2017-03-18 13:13:13.616 DEBUG 5620 --- [nio-9000-exec-6] c.h.r.s.s.SimpleUserDetailsServiceImpl   : found by username @testuser
2017-03-18 13:13:13.695 DEBUG 5620 --- [nio-9000-exec-6] c.h.r.s.api.RestExceptionHandler         : handling exception...
2017-03-18 13:13:13.696  WARN 5620 --- [nio-9000-exec-6] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported

A small issue was introduced when upgraded to new Spring Boot and replaced the new APIs. Thanks for reporting this.