实现数据库查询用户,获取密码,编写了单元测试类
This commit is contained in:
19
src/main/resources/application-dev.yml
Normal file
19
src/main/resources/application-dev.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
#开发环境配置文件
|
||||
server:
|
||||
servlet:
|
||||
context-path: /cms
|
||||
port: 8080
|
||||
spring:
|
||||
thymeleaf:
|
||||
prefix: classpath:/templates/
|
||||
datasource:
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/db_imis2?useUnicode=true&characterEncoding=utf-8&useSSL=true
|
||||
username: imis2
|
||||
password: 2015imis2
|
||||
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
show-sql: true
|
||||
debug: true
|
||||
0
src/main/resources/application-prod.yml
Normal file
0
src/main/resources/application-prod.yml
Normal file
0
src/main/resources/application.properties
Normal file
0
src/main/resources/application.properties
Normal file
4
src/main/resources/application.yml
Normal file
4
src/main/resources/application.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
#控制配置文件调用
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
10
src/main/resources/static/login.html
Normal file
10
src/main/resources/static/login.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>登录</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>登录系统</h1>
|
||||
</body>
|
||||
</html>
|
||||
10
src/main/resources/templates/login.html
Normal file
10
src/main/resources/templates/login.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>登录</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>登录系统</h1>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user