herokuでjavaのバージョン指定
古いplayアプリを動かしたかったんだけどjdkは1.7でないと動かない
でもデフォルトで1.8で動いてしまう
system.properties
というファイルを作ってそこに
java.runtime.version=1.7
って書けばOK
https://devcenter.heroku.com/articles/java-support#specifying-a-java-version
stylesheetのドキュメント
cssのドキュメントを作りたい
stylesheetガイドで検索するといろいろと出てきた
どれが今時なのかいまいちわからない
・styledocco
https://jacobrask.github.io/styledocco/
・hologram
http://trulia.github.io/hologram/
・kaleistyleguide
https://github.com/thomasdavis/kaleistyleguide
・frontnote
https://github.com/frontainer/frontnote
・sc5styleguide
http://styleguide.sc5.io/
javaでファイルをダウンロードしようとしたら日本語ファイル名が文字化ける
headerのContent-Dispositionにいろいろセットする
response.addHeader("Content-Disposition", "attachment; filename*=UTF-8''" + URLEncoder.encode(file.getName(), StandardCharsets.UTF_8.name()));
Spring Bootで日本語ファイル名のファイルダウンロード - システム開発メモ
半角スペースが+になってしまうのでreplaceしておく
.replace(
"+"
,
"%20"
)