質問編集履歴

2

applications.propertiesの内容を追加しました。

2020/04/17 16:15

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -142,6 +142,32 @@
142
142
 
143
143
  ```
144
144
 
145
+ - application.properties
146
+
147
+ ```ここに言語を入力
148
+
149
+
150
+
151
+ #データベース
152
+
153
+ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
154
+
155
+ spring.datasource.url=jdbc:mysql://localhost:3306/myapp_db
156
+
157
+ spring.datasource.username=root
158
+
159
+ spring.datasource.password=root
160
+
161
+ spring.datasource.sql-script-encoding=utf-8
162
+
163
+ spring.jpa.database=MYSQL
164
+
165
+
166
+
167
+ #サーバー
168
+
169
+ ```
170
+
145
171
 
146
172
 
147
173
 

1

build.gradleの内容を追加しました

2020/04/17 16:15

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -82,7 +82,65 @@
82
82
 
83
83
  ```
84
84
 
85
+ - build.gradle
85
86
 
87
+ ```ここに言語を入力
88
+
89
+ plugins {
90
+
91
+ id 'org.springframework.boot' version '2.2.6.RELEASE'
92
+
93
+ id 'io.spring.dependency-management' version '1.0.9.RELEASE'
94
+
95
+ id 'java'
96
+
97
+ }
98
+
99
+
100
+
101
+ group = 'com.kametalk.app'
102
+
103
+ version = '0.0.1-SNAPSHOT'
104
+
105
+ sourceCompatibility = '${java_version}'
106
+
107
+
108
+
109
+ repositories {
110
+
111
+ mavenCentral()
112
+
113
+ }
114
+
115
+
116
+
117
+ dependencies {
118
+
119
+ implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
120
+
121
+ runtimeOnly group: 'mysql', name: 'mysql-connector-java', version: '${mysql_version}'
122
+
123
+ implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
124
+
125
+ implementation 'org.springframework.boot:spring-boot-starter-web'
126
+
127
+ testImplementation('org.springframework.boot:spring-boot-starter-test') {
128
+
129
+ exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
130
+
131
+ }
132
+
133
+ }
134
+
135
+
136
+
137
+ test {
138
+
139
+ useJUnitPlatform()
140
+
141
+ }
142
+
143
+ ```
86
144
 
87
145
 
88
146