更换为云数据库

This commit is contained in:
Saturneric 2020-02-11 21:40:50 +08:00
parent 750f5aec4c
commit 554d6ec7b9
2 changed files with 7 additions and 8 deletions

View File

@ -9,6 +9,6 @@ spring.jpa.generate-ddl=false
spring.jpa.show-sql=true spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=create spring.jpa.hibernate.ddl-auto=create
spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/ase?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC spring.datasource.url=jdbc:mysql://${MYSQL_HOST:119.23.9.34}:3306/ase?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=root spring.datasource.username=codedream
spring.datasource.password=Hy009048 spring.datasource.password=codedreampasswd

View File

@ -14,7 +14,7 @@
<div class="card-header"> <div class="card-header">
<h4 class="card-title">登录</h4> <h4 class="card-title">登录</h4>
</div> </div>
<form th:action="@{/login}" method="post"> <form action="/login" method="post">
<div class="card-body"> <div class="card-body">
<div class="form-group"> <div class="form-group">
<label for="username">用户名</label> <label for="username">用户名</label>
@ -28,10 +28,9 @@
<div class="card-action"> <div class="card-action">
<button type="submit" class="btn btn-primary btn-block"><b>登录</b></button> <button type="submit" class="btn btn-primary btn-block"><b>登录</b></button>
</div> </div>
<button type="submit" class="btn-link"><b>忘记密码</b></button>
<button type="submit" class="btn-link"><b>注册账号</b></button>
</form> </form>
<div th:if="${param.error}">
用户名或密码错误
</div>
</div> </div>
</div> </div>
</div> </div>
@ -40,4 +39,4 @@
</div> </div>
<div th:include="layout::js"></div> <div th:include="layout::js"></div>
</body> </body>
</html> </html>