在SpringBoot中訪問靜態資源

第一種方式 : 放在src/main/webapp目錄下 javascript 放在webapp目錄下的靜態資源是能夠直接訪問的css user.htmlhtml 2.pngjava 在user.html中引用2.pngweb 第二種方式:放在classpath下spring ResourceProperties中的說明app org.springframework.boot.autoconfig
相關文章
相關標籤/搜索