Spring Boot/View/静的コンテンツ

Spring Boot/View/静的コンテンツ

単なる画像等の静的コンテンツはどう出力するのか

Spring Boot ではこういう素通しのモノは src/main/resources/static/ ディレクトリに置かれていて、

src/main/resources/static/img/hoge.png とか書くと http://localhost:8080/img/hoge.png とかでアクセスできるようになる。

java/spring/spring_boot/view/static_contents.txt · 最終更新: 2018-11-09 16:00 by ore