Skip to content

Kotlinサーバーサイドプログラミング実践開発のハンズオンをやったリポジトリ

Notifications You must be signed in to change notification settings

okaponta/kotlin-server-handson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kotlin-server-handson

Kotlinサーバーサイドプログラミング実践開発のハンズオンをやったリポジトリ。
公式のリポジトリはこちら

Zennのスクラップはこちら

動作バージョンなど

  • macOS BigSur
  • Apple M1
  • SpringBoot 2.7.2
  • Ktor 2.0.3

コードサンプルから大きめな変更点

MyBatisGenerator

com.arenagod.gradle.MybatisGeneratorTaskがGradle7系だと動かないので、
com.thinkimi.gradle.MybatisGeneratorを代わりに使用。

生成されるクラス名称や書き方をそれに伴い変更しています。

フロントのchromedriverのバージョン

package.jsonを書き換えてchromedriverの89以降をいれないと、M1だと動かない。

フロントからの通信時にCORSエラーが出て繋げない

@CrossOriginのオプションに以下を付与
(origins = ["http://localhost:8081"], allowCredentials = "true")

SpringSecurityのバージョンが古いので、書き直し

例によってWebSecurityConfigurerAdapterがdeprecatedになったので、書き直してます。

Ktorのバージョン違いによる文法違い

Ktorの1系と2系で書き方やライブラリの名称大きく変わるので、それに伴い変更。

About

Kotlinサーバーサイドプログラミング実践開発のハンズオンをやったリポジトリ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages