[IntelliJ]SpringbootプロジェクトJDK設定
내용
授業を受けながらコードで打つ
https://start.spring.io/を使用してSpringBoot Gradle Projectを作成しました.
コンストラクションコンストラクションファイルを構築します.gradleの一部は以下の通りです.
group = 'jpabook'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
groupとは、プロジェクト作成時のgroupIdを指し、versionはアプリケーションのバージョンです.ソース互換性とは、Javaソースコードのコンパイルとバージョンです.
Projectbuild後にテストが実行され、次のエラーが発生しました.
誤り

원인
これは、プロジェクトで設定されているjdkバージョンが異なるためのエラーです.
(build.gradleのsourceCompatibilityバージョンを1.8から11に変更したことがあるので、最初のバージョンではjdk 1.8バージョンです.)
解決する





Tomcat started on port(s):8080(http)とcontext path"が表示されます.

何もないので、localhost:8080を移動中にエラーページが表示されるのは正常です!
Reference
この問題について([IntelliJ]SpringbootプロジェクトJDK設定), 我々は、より多くの情報をここで見つけました https://velog.io/@ujnam/IntelliJ-Springboot-프로젝트-JDK-설정テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol