springboot用法和与各种框架、组件等结合使用,包括springboot的注解分析、路径分析、取得内置对象、项目打包、配置环境属性、读取资源文件、Bean配置、模板渲染、基于yml的多profile配置、基于properties的多profile、添加数据验证、配置错误页、全局异常处理、配置Tomcat运行、配置https访问路径、信息显示、内置对象、显示对象信息、文件上传、使用文件服务器、拦截器、配置druid数据库连接池、整合MyBatis框架、事务控制、Druid监控、整合ActiveMQ、整合RabbitMQ、整合kafka、邮件发送、定时调度、Actuator监控、整合Redis数据库、整合Restfui框架、整合Shiro

This commit is contained in:
foreveriss
2017-06-29 23:46:06 +08:00
commit 0e66e801f4
1205 changed files with 17740 additions and 0 deletions
@@ -0,0 +1,17 @@
<!DOCTYPE HTML>
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<title>SpringBoot模版渲染</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
</head>
<body>
<h1>显示部门信息的内容</h1>
<h2>欢迎:<shiro:principal/></h2>
<p><a shiro:hasRole="emp">雇员管理</a></p>
<p><a shiro:hasRole="dept">部门管理</a></p>
<p><a shiro:hasPermission="emp:add">雇员增加</a></p>
<p><a shiro:hasPermission="dept:edit">部门修改</a></p>
<p shiro:notAuthenticated="">您还未登录,请先登录!</p>
<p shiro:authenticated="">欢迎光临!</p>
</body>
</html>
@@ -0,0 +1,17 @@
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>SpringBoot模版渲染</title>
<script type="text/javascript" th:src="@{/js/main.js}"></script>
<link rel="icon" type="image/x-icon" href="/images/mldn.ico"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
</head>
<body>
<h1>用户登录表单、<span th:text="${error}"/></h1>
<form th:action="@{/loginPage}" method="post">
登录名:<input type="text" name="mid" value="mldnjava"/><br/>
密&nbsp;码:<input type="text" name="password" value="hello"/><br/>
<input type="submit" value="登录"/>
</form>
</body>
</html>