質問編集履歴
2
ymlとxmlの内容を追記。
title
CHANGED
File without changes
|
body
CHANGED
@@ -50,6 +50,96 @@
|
|
50
50
|
)
|
51
51
|
```
|
52
52
|
|
53
|
+
```yml
|
54
|
+
spring:
|
55
|
+
datasource:
|
56
|
+
url: jdbc:mysql://localhost/assign
|
57
|
+
username: root
|
58
|
+
password:
|
59
|
+
driverClassName: com.mysql.cj.jdbc.Driver
|
60
|
+
|
61
|
+
doma:
|
62
|
+
dialect: mysql
|
63
|
+
sql-file-repository: no_cache
|
64
|
+
```
|
65
|
+
|
66
|
+
```xml
|
67
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
68
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
69
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
70
|
+
<modelVersion>4.0.0</modelVersion>
|
71
|
+
<parent>
|
72
|
+
<groupId>org.springframework.boot</groupId>
|
73
|
+
<artifactId>spring-boot-starter-parent</artifactId>
|
74
|
+
<version>2.1.4.RELEASE</version>
|
75
|
+
<relativePath/> <!-- lookup parent from repository -->
|
76
|
+
</parent>
|
77
|
+
<groupId>com.uruk</groupId>
|
78
|
+
<artifactId>assign</artifactId>
|
79
|
+
<version>0.0.1-SNAPSHOT</version>
|
80
|
+
<name>assign</name>
|
81
|
+
<description>Demo project for Spring Boot</description>
|
82
|
+
|
83
|
+
<properties>
|
84
|
+
<java.version>1.8</java.version>
|
85
|
+
</properties>
|
86
|
+
|
87
|
+
<dependencies>
|
88
|
+
<dependency>
|
89
|
+
<groupId>org.springframework.boot</groupId>
|
90
|
+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
91
|
+
</dependency>
|
92
|
+
<dependency>
|
93
|
+
<groupId>org.springframework.boot</groupId>
|
94
|
+
<artifactId>spring-boot-starter-web</artifactId>
|
95
|
+
</dependency>
|
96
|
+
|
97
|
+
<dependency>
|
98
|
+
<groupId>mysql</groupId>
|
99
|
+
<artifactId>mysql-connector-java</artifactId>
|
100
|
+
<scope>runtime</scope>
|
101
|
+
</dependency>
|
102
|
+
<dependency>
|
103
|
+
<groupId>org.seasar.doma.boot</groupId>
|
104
|
+
<artifactId>doma-spring-boot-starter</artifactId>
|
105
|
+
<version>1.1.1</version>
|
106
|
+
</dependency>
|
107
|
+
<dependency>
|
108
|
+
<groupId>org.springframework.boot</groupId>
|
109
|
+
<artifactId>spring-boot-starter-jdbc</artifactId>
|
110
|
+
<version>2.1.4.RELEASE</version>
|
111
|
+
</dependency>
|
112
|
+
<dependency>
|
113
|
+
<groupId>org.flywaydb</groupId>
|
114
|
+
<artifactId>flyway-core</artifactId>
|
115
|
+
</dependency>
|
116
|
+
|
117
|
+
<dependency>
|
118
|
+
<groupId>org.projectlombok</groupId>
|
119
|
+
<artifactId>lombok</artifactId>
|
120
|
+
<version>1.18.6</version>
|
121
|
+
<scope>provided</scope>
|
122
|
+
</dependency>
|
123
|
+
|
124
|
+
<dependency>
|
125
|
+
<groupId>org.springframework.boot</groupId>
|
126
|
+
<artifactId>spring-boot-starter-test</artifactId>
|
127
|
+
<scope>test</scope>
|
128
|
+
</dependency>
|
129
|
+
</dependencies>
|
130
|
+
|
131
|
+
<build>
|
132
|
+
<plugins>
|
133
|
+
<plugin>
|
134
|
+
<groupId>org.springframework.boot</groupId>
|
135
|
+
<artifactId>spring-boot-maven-plugin</artifactId>
|
136
|
+
</plugin>
|
137
|
+
</plugins>
|
138
|
+
</build>
|
139
|
+
|
140
|
+
</project>
|
141
|
+
```
|
142
|
+
|
53
143
|
### 試したこと
|
54
144
|
`WorkEntity`インスタンスの`id`にsetterで値を入力してinsertした場合、正常にテーブルに保存されていました。
|
55
145
|
|
1
試したことと疑問点を追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,4 +48,11 @@
|
|
48
48
|
`id` int auto_increment primary key,
|
49
49
|
`title` varchar(64)
|
50
50
|
)
|
51
|
-
```
|
51
|
+
```
|
52
|
+
|
53
|
+
### 試したこと
|
54
|
+
`WorkEntity`インスタンスの`id`にsetterで値を入力してinsertした場合、正常にテーブルに保存されていました。
|
55
|
+
|
56
|
+
### 疑問点
|
57
|
+
エラーメッセージ中の`DBMS[standard]`とは何のことでしょうか?
|
58
|
+
MySQLを使っているので`DBMS[MySQL]`と表示されるのならわかるのですが...
|