自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 spring框架跳过Test类插件

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip&g

2018-09-28 09:27:15 676

原创 文件上传

Jsp页面编辑 <h1>文件上传入门案例</h1> <!-- 开启多媒体标签 --> <form action="http://localhost:8091/file" method="post" enctype="multipart/form-data"> <input

2018-09-13 12:40:23 180

原创 整合mybatis

基于xml形式: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop&qu

2018-09-10 19:32:22 177

原创 整合数据源及事务管理

基于xml文件实现: applicationContext.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmln

2018-09-10 16:44:52 206

原创 处理乱码问题--解决Post提交的乱码问题

<filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> &l...

2018-09-10 15:12:07 187

原创 前段控制器

web.xml头控制文件 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns=&

2018-09-10 15:11:01 209

原创 获取用户ip

package com.jt.common.util; import javax.servlet.http.HttpServletRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.util.StringUtils; import org.springframewo...

2018-09-08 15:56:37 149

原创 常用的插件配置

忽略web.xml文件的插件 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>

2018-09-08 08:53:20 261

原创 安全框架 用户认证

一、用户登录的Controller控制层代码 @Controller @RequestMapping("/") public class LoginController { @ResponseBody @RequestMapping("doLogin") public JsonResult doLogin(String username, S...

2018-09-06 13:19:03 741

原创 AOP-Demo例子

一、添加依赖 AOP的实现基于Aspect框架的实现 <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId&am

2018-09-06 10:25:47 143

原创 从数据库查询到的结果展示在页面上、zTree模板模板参考

$(function(){ $("#pageId").load("doPageUI.do",function(){ doGetObjects(); }); $(".input-group-btn") .on("click",&

2018-09-05 15:35:00 1893

原创 数据库中常用语法2

having子句 用来对多行函数结果进行过滤 - having 和 where 作用相同,都是条件过滤 where 过滤普通条件,最早执行 having 过滤多行函数结果,分组,求完多行函数后,才执行 having 跟在 group by 后面 只有一个手下的主管id select mgr_id, count(*) c from emps where mgr_id is not ...

2018-09-04 09:13:09 152

原创 Shiro核心类配置---AppShiroConfig

配置shiro的SecurityManager对象 @Bean("securityManager") public SecurityManager newSecurityManager( AuthorizingRealm realm){ DefaultWebSecurityManager sManager = new DefaultWebSec...

2018-09-04 08:54:23 1793

原创 Shiro 框架的基本配置

Shiro 基本依赖配置 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring&amp

2018-09-03 21:09:42 208

原创 数据库常用的sql语句语法

数据库中常用sql语句总结: 连接本机服务器,登录服务器: mysql -uroot -p [输入密码root] 查看表结构: desc user(表名); 退出登录、断开连接 exit; quit; \q 建库 -- 删除db1库 drop database if exists db1; -- 重新创建db1库 create database db1 charset utf8...

2018-08-08 16:04:58 568

空空如也

空空如也

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

TA关注的人

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