随笔分类 -  java

该文被密码保护。
posted @ 2020-04-02 15:44 Dear丶配角 阅读(0) 评论(0) 推荐(0)
摘要:1:模糊查询sql注入 1 <if test="changeObj != null" > 2 AND change_obj like '%${changeObj}%' 3 </if> 2:日期时间段查询 1 <if test="startDate != null"> 2 and #{startDat 阅读全文
posted @ 2019-03-05 10:44 Dear丶配角
摘要:首先,我们获取 X-Forwarded-For 中第0位的IP地址,它就是在HTTP扩展协议中能表示真实的客户端IP。具体就像这样: X-Forwarded-For: client, proxy1, proxy2,proxy… 所以你应该知道为什么要取第0位了吧! 如果 X-Forwarded-Fo 阅读全文
posted @ 2018-08-14 15:53 Dear丶配角
摘要:public class DownFileUtile {//str为文件的下载地址 public static Logger logger = Logger.getLogger(DownFileUtile.class); public static void downLoad(String str, HttpServletRequest request, HttpServletR... 阅读全文
posted @ 2018-05-29 11:29 Dear丶配角
摘要:通用mapper mybatisconfig redisconfig springconfg htapplicationconfig 阅读全文
posted @ 2018-05-08 23:43 Dear丶配角
摘要:projectname contextConfigLocation classpath:spring/applicationContext-*.xml org.springframework.web.context.ContextLoaderListener encoding ... 阅读全文
posted @ 2018-05-08 22:53 Dear丶配角
摘要:https://blog.csdn.net/qq_30258957/article/details/78762464 阅读全文
posted @ 2018-05-08 15:39 Dear丶配角 阅读(125) 评论(0) 推荐(0)
摘要:baseService层代码 itemService 继承baseService BaseServiceIml itemServiceImpl 阅读全文
posted @ 2018-04-27 22:07 Dear丶配角 阅读(1413) 评论(0) 推荐(0)
摘要:1.表格下载工具类的封装 2.service层的代码 阅读全文
posted @ 2018-04-11 17:20 Dear丶配角 阅读(284) 评论(0) 推荐(0)
摘要:Java在java.math包中提供的API类BigDecimal,用来对超过16位有效位的数进行精确的运算。双精度浮点型变量double可以处理16位有效数,但在实际应用中,可能需要对更大或者更小的数进行运算和处理。一般情况下,对于那些不需要准确计算精度的数字,我们可以直接使用Float和Doub 阅读全文
posted @ 2018-03-27 10:20 Dear丶配角
摘要:mysql sql语句大全 1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database dbname 3、说明:备份sql server 创建 备份数据的 device USE master EXEC sp_addumpdevi 阅读全文
posted @ 2018-01-19 08:55 Dear丶配角 阅读(226) 评论(0) 推荐(0)
摘要:1 WebService 简单描述 ​ 一言以蔽之:WebService是一种跨编程语言和跨操作系统平台的远程调用技术。常用的webservice框架 : cfx、jwx、XFire与Axis2,jwx也就是jax-ws,是java6提供的对webservice的一种实现。cxf框架则简化了服务发布 阅读全文
posted @ 2017-12-28 21:24 Dear丶配角
摘要:web.xml struts.xml CustomerAction.java index.jsp 在tomcat配置文件里添加虚拟路径 阅读全文
posted @ 2017-12-28 21:17 Dear丶配角 阅读(215) 评论(0) 推荐(0)
摘要:web.xml log4j.properties struts.xml applicationContext.xml jdbc.properties 阅读全文
posted @ 2017-12-24 22:27 Dear丶配角 阅读(216) 评论(0) 推荐(0)
摘要:web.xml struts.xml CustomerAction.java index.jsp 在tomcat配置文件里添加虚拟路径 阅读全文
posted @ 2017-12-24 22:20 Dear丶配角 阅读(279) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2017-12-19 18:17 Dear丶配角 阅读(145) 评论(0) 推荐(0)
摘要:一,持久類對象XML配置 阅读全文
posted @ 2017-12-07 01:54 Dear丶配角
摘要:什么是依赖注入。 DI : 全称是 dependency Injection 翻译过来是依赖注入 本意是在实例化对象的时候,对它里面的成员属性进行值的注入。、 public class UserServiceImpl{ private String username; } 通俗的说: 就是由于这个类 阅读全文
posted @ 2017-12-04 20:13 Dear丶配角
摘要:Spring是位于业务逻辑层的一个框架, 它和前面的struts 、 Hibernate组成了SSH 组合 。 它里面包含两个核心, IOC + AOP 什么是IOC IOC 的全称是 Inversion Of Control 翻译过来是控制反转的意思。 什么是IOC IOC 的全称是 Invers 阅读全文
posted @ 2017-12-04 19:52 Dear丶配角
摘要:1.HttpServletRequest概述 我们在创建Servlet时会覆盖service()方法,或doGet()/doPost(),这些方法都有两个参数,一个为代表请求的request和代表响应response。 service方法中的request的类型是ServletRequest,而do 阅读全文
posted @ 2017-10-23 14:27 Dear丶配角 阅读(106) 评论(0) 推荐(0)