rami2076 / kotlin-on-spring-boot Goto Github PK
View Code? Open in Web Editor NEWSample of Kotlin on Spring Boot.
License: MIT License
Sample of Kotlin on Spring Boot.
License: MIT License
Junit5 CsvSourceのコメント機能
Kolineだとうまく動かなさそうで検証が必要.
以下のPRで発見.
#92
関連していそう.
junit-team/junit5#2734
ログ関連の設定を追加する
現状テスト用のpersonとなっているので修正すること
mainブランチに直接pushできないように変更
現状:
ローカルホストで動かさないと404を返却する状態
期待する動作:
ローカルホストで動かさずとも2xxを返却するように変更すること
Herokuに似たサーバにデプロイして
対象サーバをyamlに追加する
charsetが異なる箇所がいくつか存在するので修正を行うこと.
my.confをdocker-compose.yamlのvolumeでコピーする設定を追加することで解決可能と見られるその際,その他の設定についても移すこと.
sh-4.4# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 8.1.0 MySQL Community Server - GPL
Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show variables like "chara%";
+--------------------------+--------------------------------+
| Variable_name | Value |
+--------------------------+--------------------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8mb3 |
| character_sets_dir | /usr/share/mysql-8.1/charsets/ |
+--------------------------+--------------------------------+
8 rows in set (0.00 sec)
mysql>
現状サイズのみみている
現在未実装
こちらを参考にして取り組む
https://zenn.dev/yuki_tu/articles/11618e3bd6fcf2
参考情報の内,どちらかの方法を採用し,readme.meに記載すること
参考
https://github.com/rami2076/spring-boot-db-sample/blob/main/db/mysql/docker-compose.yaml
localはh2
integrationテストはMySQLで良い
デフォルトはMySQL
試したがうごかなったので、ファイルを削除している。
fb6d146
toplevelクラスを使えば問題なく動く予想だが調査してテストが動くようにすること。
新規登録と更新のバリデーションの定義が決まっていないので決定する
イメージは以下、調査と対応が必要
{
"employee": {
}
}
{
"properties": "hoge"
}
pk検索
全件検索
pk更新
社員登録
pk削除
5個のユースケースを整理する
GitHubPagesにてSwaggerの書き込み処理を行った際にCORSが発生する
https://rami2076.github.io/kotlin-on-spring-boot/swagger/#/EmployeeUpdate/Register
GitHubPagesにてSwaggerの社員登録や更新処理で正常にリクエストが完了できるようになること
h2でよい気がする
モデリングの結果と異なるため変更する
readmeを修正する。
5つのエンドポイントを定義する
miroなどを使ってモデリングする
バージョンを上げるだけだと対応できない.
#85
以下より,不要となっているので関連するorg.jlleitschuh.gradle.ktlint-ideaを削除して対応を行う.
JLLeitschuh/ktlint-gradle#726
上の対応でideaの依存を削除で可能.
上の対応の結果,ktlintのエラーが出るのでCIが通過しない.
以下の対応を追加してIntelliJのフォーマットの方法を変えて対応する.
https://pinterest.github.io/ktlint/1.0.1/rules/configuration-intellij-idea/
URI設計の設計を行う
調査し必要があれば設定すること
整備出てきていないので環境づくり。
mainブランチにPRするタイミングでテストを実施すること
collationは、照合時の文字の区別をどうするかの設定。
できるだけ区別する設定にする。
utf8mb4_binとutf8mb4_900_binでは、末尾空白の扱いが異なる
MySQL5.7には、900系とbin系はない、末尾空白の扱いはutf8mb4_binでは既存の設定と同じなので今回はutf8mb4_binを使用することしました。
collation: utf8mb4_bin
timezone:Asia/Tokyo
charset:utf8mb4
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_bin','--default-time-zone=+09:00']
https://mita2db.hateblo.jp/entry/2020/12/07/000000
https://dev.mysql.com/doc/refman/8.0/ja/charset-unicode-sets.html
https://zenn.dev/uepyon9/articles/84b5ac68c71d04
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.