Giter Club home page Giter Club logo

kotlin-on-spring-boot's People

Contributors

dependabot[bot] avatar rami2076 avatar

Watchers

 avatar

kotlin-on-spring-boot's Issues

mysql DBMSの設定でutf8mb4で統一するように変更すること

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> 

ArchUnitのテストを記述すること

試したがうごかなったので、ファイルを削除している。
fb6d146

toplevelクラスを使えば問題なく動く予想だが調査してテストが動くようにすること。

KtLint 12.0 version up.

バージョンを上げるだけだと対応できない.
#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/

database側の設定に必要な設定を加える

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.