thombergs / buckpal

An example approach for implementing a Clean/Hexagonal Architecture
https://leanpub.com/get-your-hands-dirty-on-clean-architecture/overview
2.14k stars 659 forks source link

Run error? Request method 'GET' not supported #13

Closed Tao4free closed 4 years ago

Tao4free commented 4 years ago

Hi, Tom

I am new to java project.

According to the article https://reflectoring.io/spring-boot-gradle-multi-module/ Start the application by ./gradlew bootRun And test by input the url in browser http://localhost:8080/accounts/send/41L/42L/500.

Here is what I get. 2020-05-13 11:38:41.481 WARN 41785 --- [nio-8080-exec-3] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]

Is this the right method to access the buckpal application? Any comment will be help.

thombergs commented 4 years ago

That's because you have to submit it as a POST request. You need to use a tool like Postman to send such a request (or build an actual HTML form with method=POST).

See SendMoneyController.