一.创建springboot项目 使用 http://start.spring.io/ 快速创建一个springboot项目下载并导入 二.添加依赖 在pom.xml中添加支持jsp的依赖如下: 三.编写controller 注意此时注解要用@Controller,不能使用@RestControll ...
分类:
编程语言 时间:
2017-10-16 18:01:29
阅读次数:
342
package com.bjsxt.hibernate; import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.Id;import javax.persiste ...
分类:
Web程序 时间:
2017-10-09 15:24:30
阅读次数:
232
恢复内容开始 基础 <!DOCTYPE>,<html>,<title>,<body>,<h1>to<h6>,<p>,<br>,<hr>,<!-- --> 格式 <abbr>,<address>,<b>,<bdo>,<blockquote>,<cite>,<code>,<del>,<dfn>,<em> ...
分类:
Web程序 时间:
2017-10-02 23:47:20
阅读次数:
281
POCO库中文编程参考指南(1)总览 作者:柳大·Poechant 博客:Blog.CSDN.net/Poechant 邮箱:zhongchao.ustc#gmail.com (# -> @) 日期:April 14th, 2012 1 What is POCO? POCO 是什么?这是我最常被人问 ...
分类:
其他好文 时间:
2017-09-29 19:23:56
阅读次数:
201
By default the React Component Tree directly maps to the DOM Tree. In some cases when you have UI elements like overlays or loading bars this can be l ...
分类:
其他好文 时间:
2017-09-28 21:14:15
阅读次数:
255
In this chapter we will look at a seemingly trivial detail - our shell.This examination will reveal some of the inner working of the shell and the ter ...
分类:
系统相关 时间:
2017-09-27 13:09:57
阅读次数:
256
netty各组件说明:channel SocketEventLoop 控制流,多线程处理,并发channelFuture 异步通知 channel:主要是实现socket的I/O操作,降低直接使用socket的复杂性,提供了EmbeddedChannel,LocalServerChannel,Nio ...
分类:
Web程序 时间:
2017-09-22 11:58:37
阅读次数:
243
方法一:@Entity@IdClass(ModuleId.class)public class Module { @Id private Integer index; @Id @ManyToOne private Page page; private Integer cols;}方法二: @Enti ...
分类:
其他好文 时间:
2017-09-19 03:49:41
阅读次数:
159
<script type="text/javascript" src="/ckplayer/ckplayer.js" charset="utf-8"></script> <div id="videoWrap"></div><script type="text/javascript">showPlay ...
分类:
其他好文 时间:
2017-09-13 22:11:03
阅读次数:
574
DBRef: MongoDB建模有两种方式,一种是内嵌(Embed),另一种是连接(Link)。内嵌比较好理解,就是字段内容是个数组,数组内再包含文档,而我们今天介绍的是另一种,称为链接DBRef。由于MongoDB对单个文档(document)有大小16M限制,设计时也要将这个限制纳入考虑。 DB ...
分类:
数据库 时间:
2017-09-10 20:41:12
阅读次数:
147