加载中
Gradle 获取依赖列表类似maven的mvn dependency:list

task('dependenciesList') << { println project.configurations.names println "Compile dependencies" def selectedDeps = project.configurations.compile.incoming.resolutionResul...

03/14 11:11
23
OpenVAS 9支持LDAP,AD配置

yum -y install openldap-clients vim /etc/openldap/ldap.conf 添加LDAP服务端: HOST 192.168.0.121 PORT 389 TLS_REQCERT ALLOW 重启openvasmd 其他按照文档配置即可 如果是AD域: %s@dom...

2017/12/06 08:17
9
CentOS 7.3 源码安装 OpenVAS 9

#!/bin/sh yum -y install gcc cmake bison pkgconfig libuuid-devel hiredis-devel openldap-devel libgcrypt-devel libksba-devel gnutls-devel glib2-devel openssl-devel gpgme-devel zl...

2017/11/30 23:40
351
Spring Boot and Thymeleaf: Reload templates and static resources without restarting the application

# Templates reloading during development spring.thymeleaf.prefix=file:src/main/resources/templates/ spring.thymeleaf.cache=false # Static resources reloading during development...

2017/09/29 10:53
17
python wmi获取dns信息

# coding=utf-8 from win32com.client import GetObject wmi = GetObject('winmgmts:/root/MicrosoftDNS') webinfo = wmi.execquery('select * from MicrosoftDNS_Zone') print(len(webi...

2017/08/20 21:12
14
Linux系统巡检常用命令

Linux系统巡检常用命令 # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 # hostname # 查看计算机名 # lspci -tv # ...

2017/08/12 10:45
16
itext 7 sign pom文件

<?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.o...

2017/06/22 15:56
13
加快CentOS 7 tomcat 启动速度

catalina.sh添加 -Djava.security.egd=file:/dev/./urandom conf/context.xml修改为 <?xml version='1.0' encoding='utf-8'?> <Context> <WatchedResource>WEB-INF/web.xml</WatchedReso...

2017/06/05 10:51
16
VirtualBox 拷贝Centos 6虚拟机更换网卡

首先复制一份虚拟机,更新MAC地址 启动虚拟机,删除网卡配置文件 rm -f /etc/udev/rules.d/70-persistent-net.rules 修改静态IP地址: vim /etc/sysconfig/network-scripts/ifcfg-eth1 BOO...

2017/04/24 10:36
11
CentOS 6, CentOS 7 安装mysql数据库

#!/bin/sh # CentOs 6 #使用sohu镜像,速度快 wget http://mirrors.sohu.com/mysql/MySQL-5.6/MySQL-server-5.6.35-1.el6.x86_64.rpm wget http://mirrors.sohu.com/mysql/MySQL-5.6/MySQL-c...

2017/04/22 23:51
55
tomcat7-maven-plugin 支持热加载

添加两行配置: <ignorePackaging>true</ignorePackaging> <additionalClasspathDirs> <additionalClasspathDir>${project.build.directory}/classes</additionalClas...

2017/04/19 11:09
34
cups命令行添加打印机

打印机驱动下载:地址 debian 8安装cups: apt-get install -y cups cups-driver-gutenprint cups-filters 查看局域网打印机: lpinfo -v 添加打印机: ppd文件需要自己去下载打印文件:地址 ...

2017/04/11 16:18
77
Tomcat修改后的启动和停止脚本

获取脚本所在路径 BASE_PATH=$(cd `dirname $0`; pwd) echo Base path: $BASE_PATH 启动脚本: #!/bin/sh BASE_PATH=$(cd `dirname $0`; pwd) BASE_PATH=`dirname $BASE_PATH` echo Base p...

2017/04/05 14:08
25
MySQL GTID主从配置 配置文件

主配置文件: [client] port = 3306 socket = /var/run/mysqld/mysqld.sock default-character-set = utf8 [mysqld_safe] pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mys...

tomcat redis session 共享

https://github.com/pivotalsoftware/session-managers v1.3.x.RELEASE - works with Tomcat 8.5, and with Java 7 and 8. demo地址: http://git.oschina.net/niqiuma/tomcat-session/tree...

2017/02/14 11:49
53
QT找不到文件解决办法 error: C1083: Cannot open include file: 'cstddef'

在.pro文件中添加 INCLUDEPATH += $$quote(C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include) $$quote(C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt)...

2016/12/24 15:15
136
Spring data redis pubsub 简单接入

配置文件: <bean id="redisConnectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"> <property name="hostName" value="127.0.0.1"/> ...

2016/12/22 18:27
32
Execution failed for task ':app:mergeDebugResources'

AAPT err(Facade for 996171469): libpng error: Not a PNG file Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for details 解决方...

2016/12/08 15:33
13
Spring 4.2 mvc 返回指定属性的json数据

StudentController.java package com.vboss.server.controller; import org.springframework.http.converter.json.MappingJacksonValue; import org.springframework.web.bind.annotati...

2016/04/20 20:34
35
计算两个日期相差几个月

public static int getMonthsBetweenDays(Date beginDate, Date endDate) { Calendar c = new GregorianCalendar(); c.setTime(beginDate); int beginYear = c.get(Cal...

2016/04/14 10:57
19

没有更多内容

加载失败,请刷新页面

下一页

返回顶部
顶部