end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

2021-04-10から1日間の記事一覧

SpringBoot for java における app root (path)の routing

メモ。 以下のように書くと、 /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…

SpringBoot for java における @Configuration

メモ。 以下のように書くと、application.properties にある設定を @Configuration 経由で参照できます。 src/main/resources/application.properties sample.world = Hello sample src/main/java/jp/end0tknr/config/SampleConfiguration.java package jp.e…