mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
Update Spring Boot and Mysql version for react-java-mysql sample
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
0b40d180de
commit
d7d79e436f
11 changed files with 172 additions and 55 deletions
|
@ -1 +1,12 @@
|
|||
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL8Dialect
|
||||
spring.jpa.hibernate.ddl-auto=none
|
||||
spring.jpa.hibernate.show-sql=true
|
||||
|
||||
|
||||
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:db}:3306/example
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=${MYSQL_PASSWORD:db-57xsl}
|
||||
spring.datasource.initialization-mode=always
|
||||
spring.datasource.initialize=true
|
||||
spring.datasource.schema=classpath:/schema.sql
|
||||
spring.datasource.continue-on-error=true
|
||||
|
|
1
react-java-mysql/backend/src/main/resources/data.sql
Normal file
1
react-java-mysql/backend/src/main/resources/data.sql
Normal file
|
@ -0,0 +1 @@
|
|||
INSERT INTO example.greetings(name) values ('Docker');
|
5
react-java-mysql/backend/src/main/resources/schema.sql
Normal file
5
react-java-mysql/backend/src/main/resources/schema.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
CREATE TABLE IF NOT EXISTS example.greetings (
|
||||
id INTEGER AUTO_INCREMENT,
|
||||
name varchar(50) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
|
@ -1,9 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Getting Started: Serving Web Content</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
<p>Hello from Docker!</p>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue