初始项目信息导入
This commit is contained in:
16
mall-demo/src/main/resources/application.properties
Normal file
16
mall-demo/src/main/resources/application.properties
Normal file
@@ -0,0 +1,16 @@
|
||||
#<23><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD>ӳ<EFBFBD><D3B3><EFBFBD><EFBFBD><EFBFBD>
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/mall
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=root
|
||||
|
||||
#mybatis<69><73><EFBFBD><EFBFBD>
|
||||
mybatis.mapper-locations=classpath:mapper/*.xml,classpath*:com/**/mapper/*.xml
|
||||
|
||||
#<23><>־<EFBFBD><D6BE><EFBFBD><EFBFBD>DEBUG,INFO,WARN,ERROR
|
||||
logging.level.root=warn
|
||||
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־<EFBFBD><D6BE><EFBFBD><EFBFBD>
|
||||
logging.level.com.macro.mall=debug
|
||||
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־<EFBFBD><D6BE><EFBFBD><EFBFBD>·<EFBFBD><C2B7>
|
||||
#logging.path=/var/logs
|
||||
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
||||
#logging.file=demo_log.log
|
||||
33
mall-demo/src/main/resources/static/style.css
Normal file
33
mall-demo/src/main/resources/static/style.css
Normal file
@@ -0,0 +1,33 @@
|
||||
h2 {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #cccccc;
|
||||
font-family: arial,helvetica,sans-serif;
|
||||
}
|
||||
|
||||
.bookHeadline {
|
||||
font-size: 12pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.bookDescription {
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
label {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.errorPage {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.oops {
|
||||
font-size: 76pt;
|
||||
}
|
||||
17
mall-demo/src/main/resources/templates/demo.html
Normal file
17
mall-demo/src/main/resources/templates/demo.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<title>Demo Brand List</title>
|
||||
<link rel="stylesheet" th:href="@{/style.css}"/>
|
||||
</head>
|
||||
<body>
|
||||
<h2>all brand list</h2>
|
||||
<ul>
|
||||
<li th:each="brand : ${brandList}">
|
||||
<span th:text="${brand.id}"></span>
|
||||
<span th:text="${brand.name}"></span>
|
||||
</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
31
mall-demo/src/main/resources/templates/login.html
Normal file
31
mall-demo/src/main/resources/templates/login.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<title>Login</title>
|
||||
<link rel="stylesheet" th:href="@{/style.css}"></link>
|
||||
</head>
|
||||
<body onload='document.f.username.focus();'>
|
||||
<div id="loginForm">
|
||||
<h3>Login With Username and Password</h3>
|
||||
<div class="error" th:if="${param.error}">
|
||||
Incorrect username or password. Try again.
|
||||
</div>
|
||||
|
||||
<form name='f' th:action="@{/login}" method='POST'>
|
||||
<table>
|
||||
<tr>
|
||||
<td>User:</td>
|
||||
<td><input type='text' name='username' value='' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Password:</td>
|
||||
<td><input type='password' name='password' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'><input name="submit" type="submit"
|
||||
value="Login" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user