teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

補足情報追加

2020/02/02 02:51

投稿

tamutomo
tamutomo

スコア4

title CHANGED
File without changes
body CHANGED
@@ -230,4 +230,18 @@
230
230
  spring.datasource.url=jdbc:mysql://localhost:3306/javaTest
231
231
  spring.datasource.username=root
232
232
  spring.datasource.password=
233
- ```
233
+ ```
234
+ ※補足情報
235
+ 以前VSCodeを使った時は特にエラーは出ませんでしたのでツールの問題の可能性もあるかもしれません。
236
+
237
+
238
+ ※以下ビルド手順です
239
+ SpringToolSuite4を使っております。
240
+
241
+ フォルダを右クリックして→実行→SpringBootApplicationです
242
+
243
+ ![イメージ説明](87833d5517c93fd5f0f560a963da7615.png)
244
+
245
+
246
+ ※ご教授いただいた./mvnw clean packageに必要な物をダウンロードし、試しましたが
247
+ 同じエラーが出てしまいます。

1

補足情報追加

2020/02/02 02:51

投稿

tamutomo
tamutomo

スコア4

title CHANGED
File without changes
body CHANGED
@@ -138,8 +138,96 @@
138
138
 
139
139
  ・@Autowiredは原則同じパッケージ内からしか呼ぶことができないのでそれを確認。
140
140
 
141
- ・あ
142
141
 
143
142
  ### 補足情報(FW/ツールのバージョンなど)
144
143
 
144
+ pom.xmlファイルです
145
+
146
+ ```
147
+ <?xml version="1.0" encoding="UTF-8"?>
148
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
149
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
150
+ <modelVersion>4.0.0</modelVersion>
151
+ <parent>
152
+ <groupId>org.springframework.boot</groupId>
153
+ <artifactId>spring-boot-starter-parent</artifactId>
154
+ <version>2.2.4.RELEASE</version>
155
+ <relativePath/> <!-- lookup parent from repository -->
145
- ここにより詳細な情報を記載してください。
156
+ </parent>
157
+ <groupId>com.example</groupId>
158
+ <artifactId>hello</artifactId>
159
+ <version>0.0.1-SNAPSHOT</version>
160
+ <name>hello</name>
161
+ <description>Demo project for Spring Boot</description>
162
+
163
+ <properties>
164
+ <java.version>1.8</java.version>
165
+ </properties>
166
+
167
+ <dependencies>
168
+ <dependency>
169
+ <groupId>org.springframework.boot</groupId>
170
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
171
+ </dependency>
172
+ <dependency>
173
+ <groupId>org.springframework.boot</groupId>
174
+ <artifactId>spring-boot-starter-thymeleaf</artifactId>
175
+ </dependency>
176
+ <dependency>
177
+ <groupId>org.springframework.boot</groupId>
178
+ <artifactId>spring-boot-starter-web</artifactId>
179
+ </dependency>
180
+
181
+ <dependency>
182
+ <groupId>org.springframework.boot</groupId>
183
+ <artifactId>spring-boot-devtools</artifactId>
184
+ <scope>runtime</scope>
185
+ <optional>true</optional>
186
+ </dependency>
187
+ <dependency>
188
+ <groupId>mysql</groupId>
189
+ <artifactId>mysql-connector-java</artifactId>
190
+ <scope>runtime</scope>
191
+ </dependency>
192
+ <dependency>
193
+ <groupId>org.springframework.boot</groupId>
194
+ <artifactId>spring-boot-starter-test</artifactId>
195
+ <scope>test</scope>
196
+ <exclusions>
197
+ <exclusion>
198
+ <groupId>org.junit.vintage</groupId>
199
+ <artifactId>junit-vintage-engine</artifactId>
200
+ </exclusion>
201
+ </exclusions>
202
+ </dependency>
203
+ <dependency>
204
+ <groupId>org.springframework.boot</groupId>
205
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
206
+ </dependency>
207
+ <dependency>
208
+ <groupId>mysql</groupId>
209
+ <artifactId>mysql-connector-java</artifactId>
210
+ </dependency>
211
+ </dependencies>
212
+
213
+ <build>
214
+ <plugins>
215
+ <plugin>
216
+ <groupId>org.springframework.boot</groupId>
217
+ <artifactId>spring-boot-maven-plugin</artifactId>
218
+ </plugin>
219
+ </plugins>
220
+ </build>
221
+
222
+ </project>
223
+
224
+
225
+ ```
226
+
227
+ application.propertiesです
228
+ ```
229
+ spring.jpa.hibernate.ddl-auto=none
230
+ spring.datasource.url=jdbc:mysql://localhost:3306/javaTest
231
+ spring.datasource.username=root
232
+ spring.datasource.password=
233
+ ```