自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(49)
  • 收藏
  • 关注

转载 在windows上用zookeeper搭建solr集群

1.下载安装包 (1)zookeeper-3.4.9.tar.gz (2)apache-tomcat-7.0.79.zip (3)solr-4.10.3.zip 2.配置 (1)解压tomcat,重命名(要有意义),如下图所示:tomcat7-8983,tomcat7-8984,...

2017-08-04 15:33:00 329

转载 Gradle build报错,unable to find a single main class

E:\workspace_zwr\SolrDemo>gradle build > Task :findMainClass Gradle now uses separate output directories for each JVM language, but this bui...

2017-08-01 10:41:00 1061

转载 bower ENOGIT git is not installed or not in the PATH解决方法

environment:window 7 when I input 'bower install', it returns ‘bower ENOGIT git is not installed or not in the PATH’ I got the solution the ...

2017-06-29 15:52:00 195

转载 spring boot中的spring security

我的spring boot开发的项目使用到了spring security。 compile("org.springframework.boot:spring-boot-starter-security") 用gradle管理项目,加上这样一个依赖就行了。 那spring boot se...

2017-06-28 14:44:00 120

转载 Tomcat manager app 403 access denied

在centos7上安装了tomcat,能正常启动,但是点击Manager app报 403 Access Denied错误。 首先确保你已经在tomcat-users文件中添加了类似的如下内容: <role rolename="manager-gui"/> <role ...

2017-06-23 16:42:00 125

转载 How to solve “is not in the sudoers file” in Linux

1.run command: $su and input password of root. 2.edit /etc/sudoers, input command: $vi /etc/sudoers find a line:"root ALL=(ALL) ALL" fo...

2017-06-23 15:13:00 67

转载 学习Linux 环境变量(based on Centos 7)

1.Linux的变量种类 按变量的生存周期来划分,Linux变量可分为两类: (1) 永久的:需要修改配置文件,变量永久生效。 (2) 临时的:使用export命令声明即可,变量在关闭shell时失效。 2.显示某个环境变量 echo $HOME 3.设置一个新的环境变量(临时的) e...

2017-06-23 14:58:00 72

转载 Gradle 多工程依赖

在build.gradle文件中: compile (project(':com.test.model')) 在settings.gradle文件中写: include ':com.test.model' project(':com.test.model').projectDir = n...

2017-06-13 11:51:00 192

转载 修改spring boot启动的banner条幅

默认启动spring boot出现的是 现在修改为自己项目相关的banner. 1.在src/main/resources生成一个banner.txt文件,文件内容就是启动时要显示的banner了。 (http://patorjk.com/software/taag在这个网站可以生成...

2017-06-09 15:37:00 201

转载 Spring boot+thymeleaf+Gradle项目导出war包并部署tomcat上

1.修改build.gradle文件,添加依赖 apply plugin: 'war' war{ baseName= 'test' version= '0.1-SNAPSHOT' } 2.添加对SpringBootServletInitializer的支持,即创建一个类来...

2017-06-07 16:50:00 137

转载 spring boot自定义错误页面

1.在spring boot启动类里面添加这些代码: @Bean public EmbeddedServletContainerCustomizer containerCustomizer() { return (container -> { ...

2017-06-06 15:49:00 104

转载 Another app is currently holding the yum lock; waiting for it to exit...

Solution: rm -rf /var/run/yum.pid 转载于:https://my.oschina.net/ayyao/blog/914856

2017-06-05 16:13:00 65

转载 yum-config-manager: command not found

#yum -y install yum-utils Run this command will solve the issue. 转载于:https://my.oschina.net/a...

2017-06-05 15:21:00 143

转载 thymeleaf 字符串内容省略写法

<td th:text="${#strings.abbreviate(address,30)}">abc</td> /* * Abbreviate text making it have a maximum size of n. If text is bigger, ...

2017-06-01 17:45:00 856

转载 spring boo+thymeleaf+semantic ui分页

考虑2种情况,一种总页数>7,另一种<=7。 还考虑一下,当处于第一页时,previous button不显示,当处于最后一页时,next button不显示。 <div class="ui right floated pagination mini menu" th:i...

2017-05-12 10:55:00 286

转载 java pattern matcher匹配最后一个数值

describe the method: find-> Attempts to find the next subsequence of the input sequence that matches the pattern. This method starts at the b...

2017-05-08 11:00:00 1496

转载 thymeleaf 对数值进行格式化

这是我比较常用的,还有其他的可以从文档中查找: <td th:text="${#numbers.formatDecimal(p.producedQuantity,1,2)}"></td> /* * ==============================...

2017-05-04 11:17:00 2164

转载 OpenLayers 3 primer

1.new一个map之后,默认只显示+和-按钮zoom缩放,如果要显示zoomSlider,需要加上这句代码: var zoomslider = new ol.control.ZoomSlider(); map.addControl(zoomslider); 2.默认zo...

2017-05-03 15:14:00 230

转载 OpenLayers3 get specified layer(openlayers3获取指定的layer)

if (ol.Map.prototype.getLayerByName === undefined) { ol.Map.prototype.getLayerByName = function (name) { var layer; ...

2017-05-03 11:21:00 874

转载 OpenLayers3加载百度地图

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"><head><meta http-equiv="Conte...

2017-05-02 17:42:00 131

转载 关于gradle的一些问题

1.在build.gradle里面没有看到配置对应的jar包,可在程序中可以使用,why? 答:因为dependencies里面的一些jar依赖了这个Jar,所以不需要在build.gradle里面配置,会被直接下载到本地仓库。 2.如何查看当前gradle项目有哪依赖? 答:使用命令行...

2017-04-26 11:12:00 52

转载 thymeleaf th if用法

<div class="field" th:if="${showRender} == true"> <label>Render</label> ...........................

2017-04-20 16:55:00 458

转载 写一些自己未曾使用过的东西

1. import static com......ClassName.*;引用这个类里面的静态方法,如果只某个静态方法,直接将*换成方法名即可。【JDK1.5】 import static com.test.domain.specification.CustomerSpecificatio...

2017-04-19 14:47:00 107

转载 jquery get checkbox checked value

如图所示,$('input:checked').attr('checked')它的返回值 不是true 或false,而是checked! 如果要获取boolean值,要使用$('input:checked').prop('checked'),这样就返回的是true/false了。 ...

2017-04-14 16:28:00 219

转载 javascript 两个数组连接

方法一: var array1 = [1,2,3];var array2 = [4,5];//如果在将连接后的结果保存到array1中array1 = array1.concat(array2);//concat只连接,不改变数组内容,所以需要再赋值给array1才能保存连接结果 ...

2017-04-13 14:20:00 130

转载 jquery使用.css()添加样式不起作用

如果你像下面这样用jquery给一个元素标签设置样式,它不起作用。 $("#test").css("width", "100px !important"); 那是为什么呢? 因为里面有‘!important’,jquery css不识别它。因为已经直接应用到某个元素上了,所以就不需要加...

2017-04-11 10:21:00 4730

转载 去掉百度地图api角上的logo

只需要在页面上加个style就行: .anchorBL{ display:none; } 其它地图的logo也可以按这种方式去掉。 转载于:https...

2017-03-31 17:31:00 208

转载 EChart 3 与百度地图结合并异步加载数据

<div id="echarts_chinaMap" style="width: 100%; height: 700px"> 1.如上代码,在html页面要有一个div标签来放置chart. 2.接下来编写script脚本: var myChart = echarts.ini...

2017-03-31 15:38:00 144

转载 ECharts 3与百度地图整合

来源:http://blog.csdn.net/yc_1993/article/details/52431989 <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www...

2017-03-27 17:21:00 57

转载 windows下杀掉后台运行的tomcat进程

eclipse挂了,但是后台还在运行tomcat,所以无法在tomcat中启动新的tomcat,所以找办法kill了这个进程。 1:先找到这个进程 打开命令窗口,输入netstat -aon | findstr 8080 从列表中找到还处于listening状态的PID(最后一列) ...

2017-03-24 15:55:00 725

转载 Openlayers 3 绘制点聚合图(cluster map based on China)

<div id="chinaMap" class="chinaMap" style="width:560px;height:400px"></div><script type="text/javascript"> var count = data.da...

2017-03-23 14:21:00 2871

转载 ECharts 饼图居中显示

series下面有个center参数,设置成center: ['50%', '50%'],这样饼图就是居中显示了。 如果要修改饼图的绘制位置,也是修改center值。 转载于:https...

2017-03-16 17:25:00 13185

转载 ECharts 饼图 如何显示比例值

饼图图形上的文本标签,可用于说明图形的一些数据信息,比如值,名称等,label选项在 ECharts 2.x 中放置于itemStyle.normal下,在 ECharts 3 中为了让整个配置项结构更扁平合理,label 被拿出来跟 itemStyle 平级,并且跟 itemStyle 一样...

2017-03-16 15:52:00 1761

转载 How to set the value of any attribute in Thymeleaf?

The th:attr takes an expression that assigns a value to an attribute. <div class="item" th:each="gender: ${genderMap}" th:attr="data-value=${g...

2017-03-01 15:49:00 64

转载 Spring boot + Thymeleaf + Semantic UI implement a simple pagination

Controller: @RequestMapping(value="/home", method=RequestMethod.GET) public String getHomePage(Model model, @RequestParam(value="page", d...

2017-02-28 17:00:00 328

转载 How to pronounce 'MySQL'?

According to office document, it pronounces "My S-Q-L", not "My sequal". https://dev.mysql.com/doc/refman/5.7/en/what-is-mysql.html Click the UR...

2017-02-23 13:47:00 194

转载 How to deploy Semantic UI to Spring boot project

Based on a completed Spring boot project, just to deploy Semantic UI. [I do that on my windows enviroment] Step 1 : install NodeJS Download nod...

2017-02-22 17:37:00 132

转载 Semantic UI icon can't load

my project is based on Spring boot+thymeleaf+gradle+Semantic UI. When I deploy the Semantic UI, the icon not able tobe showing. Got the error ...

2017-02-22 17:00:00 153

转载 Semantic UI's dropdown is not working

Semantic UI's dropdown is not working. When I click the dropdown component, it can't unfold. I got the solution from stackoverflow site. Putting ...

2017-02-22 14:58:00 141

转载 spring boot+thymeleaf:如何引用静态文件(css,js,jpg)

<script src="js/jquery.min.js"></script><link rel="stylesheet" type="text/css" href="css/semantic.min.css"/><script src="js/...

2017-02-20 17:22:00 370

空空如也

空空如也

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

TA关注的人

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