Skip to content

Instantly share code, notes, and snippets.

View yukihane's full-sized avatar

DEWA Kazuyuki/出羽和之 yukihane

View GitHub Profile
@yukihane
yukihane / AltForwardedHeaderFilter.java
Last active July 28, 2021 03:03
X-Forwarded-Proto, Port 書き換え
import java.io.IOException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
┌───┬──┐ __| __|_ )
│ ╷╭╯╷ │ _| ( /
│ └╮ │ ___|\___|___|
│ ╰─┼╯ │ Amazon EC2
└───┴──┘ macOS Big Sur 11.3.1
┌───┬──┐ __| __|_ )
│ ╷╭╯╷ │ _| ( /
│ └╮ │ ___|\___|___|
Flyway6以降はMySQL5.6に対応していない。
https://stackoverflow.com/q/59779435/4506703
Flyway Teams Edition or MySQL upgrade required: MySQL 5.6 is no longer supported by Flyway Community Edition, but still supported by Flyway Teams Edition.
Execution failed for task ':flywayMigrate'.
> Error occurred while executing flywayMigrate
Unable to instantiate JDBC driver: com.mysql.cj.jdbc.Driver => Check whether the jar file is present
title date draft tags
テスト観点
2021-03-07 20:21:25 UTC
false
testing

書籍「ソフトウェアテストの教科書 - 品質を決定づけるテスト構成の基本と実践」第4章 ブラックボックステスト 表4-4 分類の基準として利用できる指標の一例 より。

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-error-handling

You can also use regular Spring MVC features such as @ExceptionHandler methods and @ControllerAdvice. The ErrorController then picks up any unhandled exceptions.

  • ErrorMvcAutoConfiguration
  • ErrorAttributes

StandardWrapperValve#invoke()の中でログ出力をやっている模様。(これはtomcatのクラスのようなので、embedded tomcat以外の実行環境ではまた違うのかも)

 } catch (Throwable e) {
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div>
<script src="https://point.widget.rakuten.co.jp/openid/parts?checkout=rpay257x86v2"></script>
# https://create-react-app.dev/docs/getting-started/ をベースに作成
app=my-app
# CRA実行
yarn create react-app $app --template typescript
cd $app
# yarn2(yarn berry)を利用する