Skip to content

Instantly share code, notes, and snippets.

■RestTemplateの使い方関連
【Spring Boot】RestTemplateによるAPI呼び出し
https://b1san-blog.com/post/spring/spring-rest-template/
SpringBootで「application/x-www-form-urlencoded」形式のリクエストを送る&受け取る
https://hirabay.net/?p=99
■サンプル用プロジェクトの作成のため参考にした
IntelliJでSpringFramework(MVC)のmavenプロジェクトHelloWorld(2020/3)
https://qiita.com/kasa_le/items/6aaf17823db67c951fb0
2.3. はじめてのSpring MVCアプリケーション (TERASOLUNA)
7.5
8.5
6.0
7.5
7.5
8.0
@ossan-pg
ossan-pg / jacoco_exclusion.gradle
Last active September 6, 2019 02:36
Gradle で JaCoCo のカバレッジ取得対象外クラスを手動設定する
# 元ネタ:
# gradle jacoco plugin shows excluded packages with 0% coverage
# https://issues.gradle.org/browse/GRADLE-2955
# Hari Samala added a comment - 24/Apr/14 1:31 PM をベースに設定。
jacocoTestReport.doFirst {
// 取得対象 :org.hoge パッケージ以下
// 取得対象外:dao、entity パッケージ以下全てのクラス、および例外のクラス
classDirectories = fileTree(
dir: 'build/classes/main/org/hoge',
@ossan-pg
ossan-pg / romasaga2.md
Last active August 20, 2019 15:26
ロマサガ2のひらめき用テーブル作成のためのメモ
@ossan-pg
ossan-pg / .vimrc
Last active June 10, 2019 16:13
.vimrc と CocConfig
set vb t_vb=
set number
set nobackup
set noundofile
set tabstop=4
set expandtab
set autoindent
set smarttab
set shiftwidth=4
@ossan-pg
ossan-pg / invalid_package_dependencies.txt
Last active May 9, 2019 05:44
elm/http をインストール後に elm-test を実行するとパッケージの依存でエラーになる
$ mkdir elm-hoge-test
$ cd elm-hoge-test
$ elm init
Hello! Elm projects always start with an elm.json file. I can create them!
Now you may be wondering, what will be in this file? How do I add Elm files to
my project? How do I see it in the browser? How will my code grow? Do I need
more directories? What about tests? Etc.
Check out <https://elm-lang.org/0.19.0/init> for all the answers!
@ossan-pg
ossan-pg / MyList.elm
Last active May 5, 2019 04:17
Elm の List モジュールの関数を自作する
module MyList exposing (..)
-- original: List.repeat
repeat : Int -> a -> List a
repeat idx value =
if idx <= 0 then
[]
else
value :: (repeat (idx - 1) value)
@ossan-pg
ossan-pg / footnotes.md
Last active January 5, 2019 12:39
GitHub の Markdown って注釈(footnote)サポートしてるんだっけ?

GFM の仕様見てもなさそうだった。

でもまぁ試してみたい。1

GFM の仕様見てもなさそうだった。

でもまぁ試してみたい。[^1]

Footnotes

  1. どや?

@ossan-pg
ossan-pg / conf.template
Created November 16, 2018 01:45
Docker Compose サンプル
# Nginx 設定ファイルテンプレート
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/host.access.log main;
error_log /var/log/nginx/host.error.log warn;
#error_page 404 /404.html;
@ossan-pg
ossan-pg / config.groovy
Created June 28, 2018 05:53
DBのテーブルから定期的にレコードを取得してコンソール出力する
url = 'jdbc:postgresql://localhost:5432/my_db'
user = 'username'
pass = 'password'
driver = 'org.postgresql.Driver'