自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 【JavaWeb】Session、Application修改与获取

修改application属性: ServletContext application = request.getServletContext(); application.setAttribute("blog", blog); 修改Session属性: request.getSession().setAttribute("currentUser", blogger); 获取se...

2018-09-13 16:52:22 178

原创 MyBatis往MySQL中插入一条记录后,需返回该条记录的自增主键值

MyBatis往MySQL中插入一条记录后,需返回该条记录的自增主键值 <insert id="addBlog" parameterType="Blog" keyProperty="id" useGeneratedKeys="true"> INSERT INTO t_blog VALUES(null,#{title},#{summary},now(),0,0,#{conten...

2018-09-13 09:43:02 161

原创 MySQL备忘

查询的count()不计算重复条目 SELECT count(distinct(t_feeling.id)) FROM t_feeling,t_friend where (feeling_user=t_friend.frnd_frnd or feeling_user=1) and t_friend.frnd_user=1 查询结果不重复 SELECT distinct * ...

2018-09-12 20:20:49 109

原创 MySQL Error

Error Code : 1060 Duplicate column name 'xxx' 有重复字段 Error Code: 1248. Every derived table must have its own alias 每个派生出来的表都必须有一个自己的别名 select count(*) from (select * from list where name="xiao") as ...

2018-09-11 15:49:38 190

原创 JavaScript中function出错解决

对象不支持“form”属性或方法: $("#fm").form(。。。)使用的是jquery-easyui-1.3.3/jquery.easyui.min.js,而不是jquery-1.11.2.min.js “$”未定义: $未定义是因为页面中没有引入jQuery文件或者引入不正确,是jquery-1.11.2.min.js $.messager.alert()一闪而过 $.mes...

2018-09-08 13:02:32 600

原创 Intellij 功能使用()

【快捷键】 全局查找:Ctrl+Shift+R /Ctrl+Shift+F格式化代码:Ctrl+Alt+L 【Intellij Error】 Usage of API documented as @since 1.6+ This inspection finds all usages of methods that have @since tag in their documentatio...

2018-09-07 14:16:57 203

原创 intellij导入eclipse项目

部署:https://blog.csdn.net/u012099869/article/details/51038860            https://blog.csdn.net/u010570551/article/details/51510447 Maven(解决org.springframework等包找不到):https://jingyan.baidu.com/article/...

2018-09-06 16:26:39 135

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除