springboot學習總結系列(一):多環境下(開發環境,生產環境)使用yml 或 properties 配置文件

1、首先建立一個springboot的空項目(建立過程再也不贅述,一個標準maven項目),建立完的結構以下所示,直接貼圖:html MyApplication.java文件的內容以下:java package com.test; import org.springframework.boot.SpringApplication; import org.springframework.boot
相關文章
相關標籤/搜索