建置專案
至SpringIO網站選擇要開發的專案項目
在解決ERROR後執行確認正常:
修正pom檔後
建置最初的簡單RESTful Service,其中設計概念如下註解:
實際程式如下:
重新啟動RestfulWebServicesApplication
進到網址列:http://localhost:8089/hello-world
以上簡單Webservice可再進一步簡化為如下:
其他Http Method的anotation諸如PostMapping、PutMapping...etc
目前專案置於”restful-web-services_1.zip”