diff --git a/springboot/README.md b/springboot/README.md index ba0fc6ef..cf06f71f 100644 --- a/springboot/README.md +++ b/springboot/README.md @@ -6,7 +6,10 @@ Projects created by start.spring.io contain Spring Boot, a framework that makes 1. From https://adoptium.net install java v21, and choose Entire feature.
2. From https://code.visualstudio.com install Visual Studio Code.
Next, install extension "XML" and "Extension Pack for Java".
-3. From https://dev.mysql.com/downloads/installer install MySQL, the password of the root user is set to 123456.
+3. From https://www.docker.com install docker. Next, run the command:
+ + docker run -d -p 26257:26257 cockroachdb/cockroach start-single-node --insecure --listen-addr=:26257 + 4. Optional.
From https://dbeaver.io install DBeaver.
diff --git a/springboot/pom.xml b/springboot/pom.xml index 1cf6888c..54b9bf78 100644 --- a/springboot/pom.xml +++ b/springboot/pom.xml @@ -12,25 +12,27 @@ 21 ${} - 127.0.0.1:3306 - springboot_dev + 127.0.0.1:26257 + defaultdb root 123456 - com.mysql.cj.jdbc.Driver - com.springboot.project.common.database.CustomMySQLDialect + org.postgresql.Driver + com.springboot.project.common.database.CustomCockroachdbDialect false - validate - true + update + false - jdbc:mysql://${database.jdbc.url}/${database.name}?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&createDatabaseIfNotExist=true + jdbc:postgresql://${database.jdbc.url}/${database.name} - ${database.spring.datasource.url} + + jdbc:postgresql://${database.jdbc.url}/system + - jdbc:mysql://${database.jdbc.url}/${env.LIQUIBASE_REFERENCE_DATABASE_NAME}?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&createDatabaseIfNotExist=true + jdbc:postgresql://${database.jdbc.url}/${env.LIQUIBASE_REFERENCE_DATABASE_NAME} true 2.25.2