測試SpringBoot可用

1.創建Maven工程,在pom文件中添加Springboot組件和導入依賴   2.創建主程序類:ApplicationHelloWord   @SpringBootApplication註解是說明該類是一個springboot應用   3.創建測試類:HelloController (與MVC類似)   4.運行主程序,在瀏覽器地址欄輸入地址:http://localhost:8080/hel
相關文章
相關標籤/搜索