会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
星朝
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
412
413
414
415
416
417
418
419
420
···
507
下一页
2018年4月3日
Mybatis的插件 PageHelper 分页查询使用方法
摘要: Mybatis的一个插件,PageHelper,非常方便mybatis分页查询。国内牛人的一个开源项目,有兴趣的可以去看源码,都有中文注释(ps:某些源码一大堆英文,痛哭流涕!) 在github上仓库地址为:Mybatis PageHelper 它支持基本主流与常用的数据库,这可以在它的文档上看到。
阅读全文
posted @ 2018-04-03 10:39 星朝
阅读(14549)
评论(0)
推荐(1)
2018年4月2日
Spring security获取当前用户
摘要: 1、如果在jsp页面中获取可以使用spring security的标签 页面引入标签 [java] view plain copy print?<%@ taglib prefix="sec" uri="http://www.springframework.org/
阅读全文
posted @ 2018-04-02 16:53 星朝
阅读(6966)
评论(1)
推荐(1)
页面获取Spring Security登录用户
摘要: 1.在session中取得spring security的登录用户名如下: [html] view plain copy print?${session.SPRING_SECURITY_CONTEXT.authentication.principal.username} ${s
阅读全文
posted @ 2018-04-02 16:26 星朝
阅读(2695)
评论(0)
推荐(0)
ntelliJ IDEA2017 + tomcat 即改即生效 实现热部署
摘要: 1.点击idea中tomcat设置 2.点击deployment查看Deploy at the server startup 中tomcat每次所运行的包是 xxxx:war
阅读全文
posted @ 2018-04-02 15:13 星朝
阅读(173)
评论(0)
推荐(0)
Intellij IDEA 4种配置热部署的方法
摘要: 热部署可以使的修改代码后,无须重启服务器,就可以加载更改的代码。 第1种:修改服务器配置,使得IDEA窗口失去焦点时,更新类和资源 菜单Run > EditConfiguration , 然后配置指定服务器下,右侧server标签下on frame deactivation = Update
阅读全文
posted @ 2018-04-02 15:10 星朝
阅读(300)
评论(0)
推荐(0)
springMVC 几种页面跳转方式
摘要: 前面已经了解了Controller的几种配置方式 今天主要写一下响应界面跳转的几种方式 1.在注解的方式中 1.1通过HttpServletResponse的API直接输出(不需要配置渲染器) controller类的主要代码 @Controller public class RequestCont
阅读全文
posted @ 2018-04-02 14:04 星朝
阅读(28472)
评论(0)
推荐(2)
java对象转化为json字符串并传到前台
摘要: Java代码 package cc.util; import java.util.ArrayList; import java.util.Date; &nb
阅读全文
posted @ 2018-04-02 13:55 星朝
阅读(9482)
评论(0)
推荐(0)
2018年3月30日
Springmvc构造RESTful详细讲解
摘要: ! done Springmvc构造RESTful详细讲解 Rest介绍 ! br / br / Code highlighting produced by Actipro CodeHighlighter (freeware)br / http://www.CodeHighl
阅读全文
posted @ 2018-03-30 16:26 星朝
阅读(318)
评论(0)
推荐(0)
2018年3月29日
mybatis <where>、<set>、<trim>、<sql>、<foreach>标签的使用
摘要: mybatis where标签的使用 where后面跟查询条件 简化sql语句中判断条件的书写 例: <select id="user" parameterType="user" resultType="User"> select from user <where> <
阅读全文
posted @ 2018-03-29 16:01 星朝
阅读(271)
评论(0)
推荐(0)
Spring读取mybatis在多个jar包下的的mapper文件
摘要: 刚开始的时候我的配置文件在同名目录下都是在/mapper下,导致只能读取一个jar中的mapper文件。先解决如下: 1.将mapper文件放在不能放在同名的目录下。 比如:user.jar放在
阅读全文
posted @ 2018-03-29 15:01 星朝
阅读(2795)
评论(0)
推荐(0)
上一页
1
···
412
413
414
415
416
417
418
419
420
···
507
下一页
公告