- こちらからAWS認定アカウントを作成して、申込む
- ピアソンVUEからの登録にした
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting nginx: nginx: [emerg] "if" directive is not allowed here in /etc/nginx/lb.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConstructorTest {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Controller | |
public class TopController { | |
@RequestMapping("/") | |
public String top(HttpSession session, Model model) { | |
PrefectureEnum[] types = PrefectureEnum.values(); | |
List<PrefectureDto> prefList = new ArrayList<>(); | |
for (PrefectureEnum m : types) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
public class RestTemplateResolver { | |
@Bean | |
public RestTemplate zipCodeSearchRestTemplate() { | |
RestTemplate restTemplate = new RestTemplate(); | |
MappingJackson2HttpMessageConverter messageConverter = new MappingJackson2HttpMessageConverter(); | |
List<MediaType> supportedMediaTypes = new ArrayList<>(messageConverter.getSupportedMediaTypes()); | |
supportedMediaTypes.add(MediaType.TEXT_PLAIN); // text/plainのJacksonの処理対象にくわえる | |
messageConverter.setSupportedMediaTypes(supportedMediaTypes); |