自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 COMPILATION ERROR : Unable to locate the Javac Compiler

在使用STS的maven build命令打包时出现了Unable to locate the Javac Compiler in:C:\Program Files\Java\jre1.8.0_201\..\lib\tools.jar的错误:错误信息明确指示了jre的问题,需要的是jdk中的tools.jar,而不是jre路径下的tools.jar。打开window-->pref...

2019-06-13 11:13:26 481

原创 java过滤Map中符合条件的元素

废话少说,代码如下:import java.util.HashMap;import java.util.Map;public class MapDemo { public static void main(String[] args) { Map<String, Integer> map = new HashMap<String, Integer>();...

2018-09-06 10:14:37 7329

翻译 ScalaPB安装及使用

ScalaPB是Scala语言的一个protocol buffer编译器(protoc)插件。它将为protocol buffer自动生成Scala case类、解析器和序列化。ScalaPB托管在GitHub上。主要特点建立在谷歌的protocolbuffer编译器之上,以确保与语言规范的完美兼容性。支持proto2和proto3。使用lenses可以方便地进行嵌套更新:va

2018-01-10 11:00:40 1687

转载 Spring MVC拦截器配置实例

Spring WebMvc框架中的Interceptor,与Servlet API中的Filter十分类似,用于对Web请求进行预处理/后处理。通常情况下这些预处理/后处理逻辑是通用的,可以被应用于所有或多个Web请求

2017-12-18 10:14:59 2464

转载 mySql函数总结

MySQL数据库提供了很多函数包括:数学函数;字符串函数;日期和时间函数;条件判断函数;系统信息函数;加密函数;格式化函数;一、数学函数  数学函数主要用于处理数字,包括整型、浮点数等。函数作用ABS(x)返回x的绝对值  SELECT ABS(-1) -- 返回1CEIL(x),CEILI

2017-12-15 16:49:48 201

原创 SpringBoot配置CORS跨域访问

SpringBoot配置CORS跨域访问

2017-12-15 11:08:59 6497

转载 Ehcache配置详解及CacheManager使用

原文地址:https://www.cnblogs.com/sunxucool/p/3159076.html    缓存配置        name:缓存名称。        maxElementsInMemory:缓存最大个数。        eternal:对象是否永久有效,一但设置了,timeout将不起作用。       

2017-12-13 16:33:07 989

原创 Your ApplicationContext is unlikely to start due to a @ComponentScan of the default

Springboot启动时出现:** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package :Application startup failed当Springboot的入口类使用了@ComponentScan注解后,启动时默认会扫

2017-12-08 15:55:55 658

原创 mybaties+maven+springboot整合将查询结果映射到实体Bean时的注意事项

在Rank.xml中配置查询语句<select id="selectSumPrice" parameterType="com.iscas.manager.model.Rank" resultType="com.iscas.manager.entity.RankBean"> SELECT s.code as storeId, s.nam

2017-11-30 11:18:39 1759

原创 关于hibernate映射文件配置异常:InvalidMappingException: Could not parse mapping document

初次使用hibernate,在配置文件时出现下面的异常:org.hibernate.boot.InvalidMappingException: Could not parse mapping document: com/myhibernatedemo/entity/Product.hbm.xml (RESOURCE)*********************Caused by: o

2017-11-13 17:19:35 12261

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