实现数据库查询用户,获取密码,编写了单元测试类

This commit is contained in:
F嘉阳
2018-01-30 15:47:30 +08:00
commit 91aba6a592
21 changed files with 818 additions and 0 deletions

View 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

View File

View File

@@ -0,0 +1,4 @@
#控制配置文件调用
spring:
profiles:
active: dev

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录</title>
</head>
<body>
<h1>登录系统</h1>
</body>
</html>

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录</title>
</head>
<body>
<h1>登录系统</h1>
</body>
</html>