-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path190-java-1.html
206 lines (189 loc) · 7.67 KB
/
190-java-1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!doctype html>
<html >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>葡萄藤PPT</title>
<link rel="stylesheet" href="./css/reveal/reveal.css">
<!-- PPT主题,可以在/css/reveal/theme/中选择其他主题,目前暂时只能使用该模板 -->
<link rel="stylesheet" href="./css/reveal/theme/ptt.css">
<!-- syntax highlighting 代码高亮主题 -->
<link rel="stylesheet" href="./lib/reveal/css/zenburn.css">
<!-- 打印和PDF输出样式 -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? './css/reveal/print/pdf.css' : './css/reveal/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<img src="./img/demo/logo.png" alt="" usemap="#pttmap" class="base-logo">
<map name="pttmap">
<area shape="rect" coords="0,0,276,58" href="http://www.jnshu.com" alt="" target="_blank"/>
</map>
<div class="reveal">
<div class="slides">
<section>
<h2>Spring—Boot整合MyBatis搭建Web项目</h2>
<h3>小课堂</h3>
<p>分享人: 韦杰</p>
</section>
<section>
<p>目录</p>
<p>1.背景介绍</p>
<p>2.知识剖析</p>
<p>3.常见问题</p>
<p>4.解决方案</p>
<p>5.编码实战</p>
<p>6.扩展思考</p>
<p>7.参考文献</p>
<p>8.更多讨论</p>
</section>
<section>
<h3>1.背景介绍</h3>
</section>
<section>
<p>前几天我想重新测试一下拦截器拦截session判断用户是否登录、以及发送短信和图片上传的功能。但是我自己任务时
期写的代码不知道怎么回事运行不起来,我就干脆用Spring Boot重新写了一个web项目,并完成拦截器、发送短信和
图片上传功能的测试。因为这是我第一次用Spring-Boot整合MyBatis搭建Web项目,所以花的时间稍微多了一点,4个
小时。现在要我重新搭建一次,半个小时应该能完成。</p>
</section>
<section>
<h3>2.知识剖析</h3>
</section>
<section>
<p align="left">Spring-Boot整合MyBatis搭建Web项目的步骤是什么?</p>
</section>
<section>
<p align="left"> 1)配置依赖</p>
<p align="left"> 2)配置数据源、连接池</p>
<p align="left"> 3)完成持久层:实体类、mapper接口</p>
<p align="left"> 4)完成业务层</p>
<p align="left"> 5)完成表现层</p>
</section>
<section>
<h3>3.常见问题</h3>
<p>需要配置什么依赖?</p>
</section>
<section>
<h3>4.解决方案</h3>
</section>
<section>
<img src="./img-java/mybatis-spring-boot/A.png">
</section>
<section>
<h3>5.代码实战</h3>
</section>
<section>
<h3>6.拓展思考</h3>
<p></p>
</section>
<section>
<h3>7.参考文献</h3>
<p>参考1:<a href="https://github.com/mybatis/spring-boot-starter" target="_blank">Spring Boot集成MyBatis官方demo</a></p>
<p>参考2:<a href="http://blog.csdn.net/xiaolyuh123/article/details/73330996" target="_blank">Spring Boot配置dbcp2连接池</a></p>
</section>
<section>
<h3>8.更多讨论</h3>
<p></p>
</section>
<section>
<h4>鸣谢</h4>
<p>感谢大家观看</p>
<p><small>BY : 韦杰</small></p>
</section>
</div>
</div>
<script src="./lib/reveal/js/head.min.js"></script>
<script src="./lib/reveal/reveal.js"></script>
<script>
// 以下为常见配置属性的默认值
// {
// controls: true, // 是否在右下角展示控制条
// progress: true, // 是否显示演示的进度条
// slideNumber: false, // 是否显示当前幻灯片的页数编号,也可以使用代码slideNumber: 'c / t' ,表示当前页/总页数。
// history: false, // 是否将每个幻灯片改变加入到浏览器的历史记录中去
// keyboard: true, // 是否启用键盘快捷键来导航
// overview: true, // 是否启用幻灯片的概览模式,可使用"Esc"或"o"键来切换概览模式
// center: true, // 是否将幻灯片垂直居中
// touch: true, // 是否在触屏设备上启用触摸滑动切换
// loop: false, // 是否循环演示
// rtl: false, // 是否将演示的方向变成RTL,即从右往左
// fragments: true, // 全局开启和关闭碎片。
// autoSlide: 0, // 两个幻灯片之间自动切换的时间间隔(毫秒),当设置成 0 的时候则禁止自动切换,该值可以被幻灯片上的 ` data-autoslide` 属性覆盖
// transition: 'default', // 切换过渡效果,有none/fade/slide/convex/concave/zoom
// transitionSpeed: 'default', // 过渡速度,default/fast/slow
// mouseWheel: true, //是否启用通过鼠标滚轮来切换幻灯片
// }
// 初始化幻灯片
Reveal.initialize({
history: true,
dependencies: [
{ src: './plugin/markdown/marked.js' },
{ src: './plugin/markdown/markdown.js' },
{ src: './plugin/notes/notes.js', async: true },
{ src: './plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
<script>
//过滤掉小于 10 的数组元素:
//代码:
document.getElementById("a").onclick = isBigEnough();
function isBigEnough(element, index, array) {
return (element >= 10);
}
var filtered = [12, 5, 8, 130, 44].filter(isBigEnough);
// 12, 130, 44
//结果:[12, 5, 8, 130, 44].filter(isBigEnough) : 12, 130, 44
console.log(filtered);
///11111111111
//检查是否有数组元素大于等于10:
document.getElementById("b").onclick = isBigEnoug();
function isBigEnoug(element, index, array) {
return (element >= 10);
}
var passed = [2, 5, 8, 1, 4].some(isBigEnoug);
// passed is false
passed2 = [12, 5, 8, 1, 4].some(isBigEnoug);
// passed is true
//结果:
//[2, 5, 8, 1, 4].some(isBigEnough) : false
//[12, 5, 8, 1, 4].some(isBigEnough) : true
console.log(passed);
console.log(passed2);
////2222222222222222222222
//将所有的数组元素转换为大写:
document.getElementById("c").onclick = makeUpperCase();
var strings = ["hello", "Array", "WORLD"];
function makeUpperCase(v)
{
return v.toUpperCase();
}
var uppers = strings.map(makeUpperCase);
// uppers is now ["HELLO", "ARRAY", "WORLD"]
// strings is unchanged
//结果:["hello", "Array", "WORLD"].map(makeUpperCase) : HELLO, ARRAY, WORLD
console.log(uppers);
/////333333333333333333
document.getElementById("d").onclick = printElt();
//打印数组内容:
function printElt(element, index, array) {
document.writeln("[" + index + "] is " + element + "<br />");
}
[2, 5, 9].forEach(printElt);
// Prints:
// [0] is 2
// [1] is 5
// [2] is 9
//结果:
//[0] is 2
//[1] is 5
//[2] is 9
/////////44444444444444
</script>
</body>
</html>
Contact GitHub API Training Shop Blog About