BAEL-20869 Move remaining spring boot modules
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
spring.datasource.url=jdbc:mysql://${rds.hostname}:${rds.port}/${rds.db.name}
|
||||
spring.datasource.username=${rds.username}
|
||||
spring.datasource.password=${rds.password}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
spring.cloud.gcp.sql.instance-connection-name=baeldung-spring-boot-bootstrap:europe-west2:baeldung-spring-boot-bootstrap-db
|
||||
spring.cloud.gcp.sql.database-name=baeldung_bootstrap_db
|
||||
spring.cloud.gcp.logging.enabled=true
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
server.port = 8081
|
||||
|
||||
spring.application.name = Bootstrap Spring Boot
|
||||
|
||||
spring.thymeleaf.cache = false
|
||||
spring.thymeleaf.enabled=true
|
||||
spring.thymeleaf.prefix=classpath:/templates/
|
||||
spring.thymeleaf.suffix=.html
|
||||
|
||||
spring.security.user.name=john
|
||||
spring.security.user.password=123
|
||||
|
||||
spring.datasource.driver-class-name=org.h2.Driver
|
||||
spring.datasource.url=jdbc:h2:mem:bootapp;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
|
||||
spring.datasource.username=sa
|
||||
spring.datasource.password=
|
||||
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
|
||||
|
||||
server.error.path=/error
|
||||
server.error.whitelabel.enabled=false
|
||||
+1
@@ -0,0 +1 @@
|
||||
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
|
||||
@@ -0,0 +1,12 @@
|
||||
server.port=${port:8080}
|
||||
spring.application.name = Bootstrap Spring Cloud
|
||||
spring.thymeleaf.cache = false
|
||||
spring.thymeleaf.enabled=true
|
||||
spring.thymeleaf.prefix=classpath:/templates/
|
||||
spring.thymeleaf.suffix=.html
|
||||
|
||||
server.error.path=/error
|
||||
server.error.whitelabel.enabled=false
|
||||
|
||||
spring.jpa.generate-ddl=true
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<include resource="org/springframework/cloud/gcp/autoconfigure/logging/logback-appender.xml" />
|
||||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
|
||||
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
|
||||
|
||||
<root level="INFO">
|
||||
<!-- If running in GCP, remove the CONSOLE appender otherwise logs will be duplicated. -->
|
||||
<appender-ref ref="CONSOLE"/>
|
||||
<appender-ref ref="STACKDRIVER" />
|
||||
</root>
|
||||
</configuration>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
|
||||
</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="STDOUT" />
|
||||
</root>
|
||||
</configuration>
|
||||
+1
@@ -0,0 +1 @@
|
||||
spring.cloud.appId=baeldung-spring-boot-bootstrap
|
||||
@@ -0,0 +1,19 @@
|
||||
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Error Occurred</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Error Occurred!</h1>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<b>
|
||||
[<span th:text="${status}">status</span>]
|
||||
<span th:text="${error}">error</span>
|
||||
</b>
|
||||
<p th:text="${message}">message</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<html xmlns:th="http://www.w3.org/1999/xhtml" lang="en">
|
||||
<head><title>Home Page</title></head>
|
||||
<body>
|
||||
<h1>Hello !</h1>
|
||||
<p>Welcome to <span th:text="${appName}">Our App</span></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user