2021-04-10から1日間の記事一覧
メモ。 以下のように書くと、 /hello/world な 2段? endpoint でroutingできます。 package com.coltware.spring.sample.api; import com.coltware.spring.sample.model.WorldModel; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.s…
メモ。 以下のように書くと、application.properties にある設定を @Configuration 経由で参照できます。 src/main/resources/application.properties sample.world = Hello sample src/main/java/jp/end0tknr/config/SampleConfiguration.java package jp.e…