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

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

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

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