自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(46)
  • 问答 (1)
  • 收藏
  • 关注

原创 elasticsearch启动问题处理

1、启动服务不能使用root权限 需要添加用户2、max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]在 etc/sysctl.config 添加vm.max_map_count=655360用root 用户 执行 sysctl -p...

2019-04-11 11:43:44 180

原创 Schtasks命令详解(计划任务DOS批处理)

Schtasks安排命令和程序定期运行或在指定时间内运行。从计划表中添加和删除任务,按需要启动和停止任务,显示和更改计划任务。创建新的计划任务。语法Schtasks/create/tnTaskName/trTaskRun/scschedule[/momodifier][/dday][/mmonth[,month...][/iIdleTime][/stStartTime][/sdSt...

2019-02-28 09:15:24 4702

原创 xml 简单学习 总结

1、申明xml<?xml version=1.0 encoding="UTF-8?>2、引入外部样式表<?xml-sheetstyle type="text/css" href="c.css" ?>3、自定义实体 <!DOCDYPE  ROOT[  <!ENTITY entityName  entityValue>  ] > e

2018-11-26 17:13:31 189

原创 2018-11-26 面试记录

   今天是20181126,在职A公司,服务A公司14个月,由于多种原因,产生了离职的想法,所有就仓促的去参加B公司参加面试,记录一下面试的过程和一些问题    很早去了B公司地址,让我意外的是一家为政府部门工作的,办公地点是gonganting,没有做好准备,有点不自在,急匆匆的参加了面试。面试过程是这样的:1、做笔试题,都是java基础知识,一个java基础类型的选择题我就做错了,很...

2018-11-26 17:12:27 130

原创 文件压缩工具类

import java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.io.OutputStream;import java.util.List;import java.util.zip.ZipEntry;import java.util.zip.ZipOutputStr...

2018-08-24 12:54:54 134

原创 swagger 携带taken做为登录校验

/** * * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at *...

2018-07-05 18:03:29 3069

原创 is not a number, it is freemarker.template.SimpleScalar

----------freemarker.core.NonNumericalException: schedule.className?cap_first is not a number, it is freemarker.template.SimpleScalar at freemarker.core.EvaluationUtil.getNumber(EvaluationUtil.java:10...

2018-07-04 17:19:19 1891

原创 HibernateValidator group

最近公司开发平台,要求有HibernateValidator验证,记录一下学习过程,主要理解一下Group校验附上官网文档 1、Meavn依赖<dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</art...

2018-06-28 08:58:32 3769

原创 SpringBoot_SpringApplication_多配置文件

1、创建springboot 项目2、新建3个配置application-ceshi.propertiesname=Service-ceshiport=1234-ceshiapplication-kaifa.propertiesname=Service-kaifaport=1234-kaifaapplication.propertiesspring.profiles.active=ceshi3...

2018-05-24 15:05:52 360

原创 SpringBoot_SpringApplication_应用退出

1、创建springboot项目2、编写应用停止实例@SpringBootApplicationpublic class ApplicationExit { @Bean public ExitCodeGenerator exitCodeGenerator() { return () -> 42; } public static void main(String[] a...

2018-05-24 14:43:10 5267

原创 SpringBoot_SpringApplication_自定义事件监听

1、创建springboot项目2、自定义事件,继承 SpringApplicationEvent 重写 CustomizingEventpublic class CustomizingEvent extends SpringApplicationEvent { public CustomizingEvent(SpringApplication application, String[] a...

2018-05-24 14:19:30 666

原创 SpringBoot_SpringApplication_自定义启动类

1、创建springboot项目2、代码public static void main(String[] args) { SpringApplication app = new SpringApplication(Application.class); //是否启动banner打印 app.setBannerMode(Mode.OFF); //******* app.ru...

2018-05-24 11:20:52 610

原创 SpringBoot_SpringApplication_自定义banner

创建meavn项目 可以从https://start.spring.io/ 获取下载以后导出eclpse导入项目的格式自定义banner1、在classpath路径下新建banner.txt文件2、application.properties 文件加入路径:① spring.banner.location  ②如果不是UTF-8编码  加入 spring.banner.charset③如果是图片文...

2018-05-24 11:03:52 311

原创 使用npoi 导出可编辑的word饼图,仅限于office 2007

public static XWPFDocument CreatePie(int numbers,String countent, IList<Double> datas, IList<String> legend, XWPFDocument doc, ST_LegendPos legendLocal, int x1 = 200000, int y1 = 0,int x...

2018-05-23 14:32:10 1111 2

原创 使用npoi 导出可编辑的word柱状图,仅限于office 2007

public static NPOI.XWPF.UserModel.XWPFDocument Createbar(String countent,Dictionary<String, IList<Double>> datas, IList<String> legend, XWPFDocument m_Docx, ST_LegendPos legendLocal...

2018-05-23 14:30:54 1799

原创 C# 数据类型

值类型: 可以使用sizeof(类型) 返回以字节为单位的存储尺寸bool布尔值True 或 FalseFalsebyte8 位无符号整数0 到 2550char16 位 Unicode 字符U +0000 到 U +ffff'\0'decimal12

2017-10-23 15:56:32 156

原创 Spring Date jpa 配置文件 spring.xml

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/con

2017-07-23 21:59:16 300

原创 struts、spring、mybatis 整合(spring.xml)

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"    xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.sprin

2017-07-23 21:42:40 177

原创 SpringMVC 基于annotation的详解

Spring2.5引入基于annotation的 Controller 配置控制器,使用RequestMapping 配置实际处理的Handler注解的详解:  ①:@Controll  ( annotation indicates that a particular class serves the role of a controller, The dispatcher sca

2016-12-12 23:39:09 277

原创 Spring 的Hello world

1、加入jar 包  ①:Spring的包  ②:commons-loging-1.1.1.jar 依赖包  2、把jar 包加载到环境中     选上所有 jar 包 ----》右击-----》Build Path ----》 add to Build Path     3、在web.xml 中 配置 Spring的ServletspringD

2016-12-12 23:37:30 160

原创 struts、spring、mybatis 整合

1、加入jar包  ①:struts  jar包  ②:mybatis  jar包  ③:spring jar包还有这两个关联包 mybatis-spring-1.2.1.jar struts2-spring-plugin-2.3.20.3.jar2、配置文件①:db.properties  更具自己的实际情况...②:log4j.p

2016-12-03 20:45:57 230

原创 Servlet的转发 VS 从定向

请求转发 VS 请求从定向 1、RequestDispatcher     ①:调用HttpServletRequest 的 getRequestDispatcher()获取转发器,传入要转发的位置  ②:转发器调用forword(request,response)  2、sendRedirect调用response的sentRedirect()方法进行从定

2016-11-30 22:42:46 204

原创 Servlet 监听

第一步 写Servlet 监听 1、对ServletContextpackage com.dxf.listener;import javax.servlet.ServletContextEvent;import javax.servlet.ServletContextListener;/* * ServletContextListener * * 当ServletC

2016-11-29 23:02:54 262

原创 javaScript - 删除添加元素

function addPerson() { var name = document.getElementsByName("name")[0].value; var email = document.getElementsByName("email")[0].value; var salary = document.getElementsByName("salary")[

2016-11-25 23:35:27 201

原创 xml 简单学习总结

1、申明xml2、引入外部样式表3、自定义实体   ROOT[    ] > eg:      ]> 4、编写dtd  DTD的目的:验证该xml文档是否是有效的xml文档如果一个良构的xml文档满足了DTD的声明就是一个有效的xml文档。注意:良构 不一定  有

2016-11-23 22:40:56 324

原创 jdbcTemplate 的 queryForObject异常

返回值类型使用  需要使用包装了,否则会有如下  org.springframework.dao.TypeMismatchDataAccessException: Type mismatch affecting row number 0 and column type 'INT': Value [9] is of type [java.lang.Integer] and cannot

2016-11-23 22:25:57 691

原创 Spring 的El 表达式 (SpEL)

Spring 表达式语言  SpEL1、Spring 表达式语言 (简称SpEL):是一个支持运行时查询和操作对象图的强大表达式语言2、语法类似于EL表达式 #{..}作为定界符,所有在大括号中的字符被认为是SpEL3、SpEL 为bean 的属性进行动态赋值提供了便利4、通过SpEL可以实现以下功能:        ①:–通过bean 的id 对bean 进行引用

2016-11-23 22:11:56 879

原创 Mybatis 的 动态sql

同样使用了Oracle 的 scott 模式下的emp表1、创建Emp类package com.briup.dynamicSql;import java.sql.Date;import org.apache.ibatis.type.Alias;@Alias("emp")public class Emp { private int empno; private

2016-11-21 23:17:05 130

原创 Mybatis-处理集合结果方法

本次测试使用oracle的自带scott 模式下的emp 和 dept 表两种方法   1、嵌套结果集  2、嵌套子查询1、创建与emp 和 dept 表对应的java 类1>Dept.javapackage com.briup.collecation;import java.util.List;import org.apache.ibatis.

2016-11-21 23:04:06 599

转载 第4天 core java

第四天:目标: 1. 数组的创建和使用------------------------------------------------------------第四章: Array数组是指一组数据的集合,数组中的每个数据称为元素。在Java中,数组也是Java对象。数组中的元素可以是任意类型(包括基本类型和引用类),但同一个数组里只能存放类型相同的

2016-11-20 20:39:00 197

原创 Spring JdbcTemplate (使用c3po数据源)

本测试基于oracle 数据库的测试,使用oracle自带用户 scott 的dept表1、加入Spring必要的包、ojdbc6.jar、c3p0-0.8.4.5.jar2、创建 Dempartment. Pojo类package com.dxf.pojo;public class Dempartment { private int id; private

2016-11-20 20:22:20 287

原创 Spring AOP 的引入(三 基于xml)

还是一样的需求在执行计算的时候,给控制台答应的格式为begain  method  with [ args1,args2 ] end method with result这次使用Spring AOP定义接口:package com.dxf.ArithmethicCalculatorSpringAOP;public interface Arithm

2016-11-19 13:50:08 208

原创 Spring AOP 的引入(三 基于annotation)

还是一样的需求在执行计算的时候,给控制台答应的格式为begain  method  with [ args1,args2 ] end method with result这次使用Spring AOP定义接口:package com.dxf.ArithmethicCalculatorSpringAOP;public interface Arithmet

2016-11-19 13:41:23 192

原创 Spring AOP 的引入(二)

还是一样的需求需求:在执行计算的时候,给控制台答应的格式为begain  method  with [ args1,args2 ] end method with result可以使用动态代理来实现:定义接口:package com.dxf.ArithmethicCalculatorProxy;public interface Ar

2016-11-19 13:35:03 156

原创 Spring AOP 的引入(一)

假设有这么一个需求在执行计算的时候,给控制台答应的格式为begain  method  with [ args1,args2 ] end method with result看看原来的代码:接口:ArithmethicCalculator package com.dxf.ArithmethicCalculator;public int

2016-11-19 13:29:56 222

原创 Mybatis自定义类型处理器

1、了解用途 有什么用途了,其实就是在insert和select的时候,假设定义了两个实体,一对一的关系,而且双向关联  比如 妻子和丈夫  准备数据  create table wife( w_id number(10) primary key, w_name varchar(10), h_id references  husband(h_id) 

2016-11-17 20:54:31 442

原创 基于一对一/多的mybatis案例

基于一对一/多的mybatis案例学生  1 n老师  1  1班级  1、建立以及pojo类package com.briup.pojo.many2one;/*create table clazz_t(c_id number(10) primary key,c_na

2016-11-17 20:54:03 247

原创 Mybatis的config.xml详解

<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd"><!-- development :开发模式 work :工作模式 environments default="development"与environment id

2016-11-17 20:53:32 380

原创 Mybatis基于注解的入门案例

基于注解的入门案例1、创建表 create table My_Student( id number(10) primary key, name varchar(10), email varchar(30), bod Date);2、创建pojo类package com.briup.pojo;import java.util.D

2016-11-17 20:49:45 236

原创 Mybatis基于xml配置的入门案例

基于xml配置的入门案例1、创建表 create table My_Student( id number(10) primary key, name varchar(10), email varchar(30), bod Date);2、创建pojo类package com.briup.pojo;import java.util

2016-11-17 20:46:53 246

空空如也

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

TA关注的人

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