#author("2021-10-04T09:27:19+09:00","","") [[ELBOOKS]] #author("2021-10-04T09:27:45+09:00","","") *エラー [#t24e32b8] Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-08-20 09:26:47.234 ERROR 13740 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active). 上記のようなエラーはデータベースのアクセスに失敗しているので spring.datasource.url=jdbc:mysql://localhost/接続したいデータベース名 spring.datasource.username=root spring.datasource.password=MySQLのパスワード spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver プロジェクトファイルからresouleseの直下にapplication.propertiesあるので上記のように設定すると解決できます。 There was an unexpected error (type=Not Found, status=404). No message available 上記のようなエラーはURLが違う可能性があります。なのでコントローラークラスにあるMappingの部分を確認してください。 There was an unexpected error (type=Method Not Allowed, status=405). Request method 'GET' not supported org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported 上記のようなエラーはコントローラークラスのMappingのGetとPostが正しいか確認してください。 There was an unexpected error (type=Internal Server Error, status=500). An error happened during template parsing (template: "class path resource [templates/testpage.html]") 上記のようなエラーが出たら画面を下にスクロールしていくと下記の通りにhtmlファイルの何行目にエラーがあるか分かります。 Caused by: org.attoparser.ParseException: Could not parse as expression: "/create/view" (template: "testpage" - line 10, col 4) 記述にミスがあると思うので[[リファレンスなど調べて:http://www.htmq.com/html/indexm.shtml]]修正してください。