上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 先下载https://bootstrap.pypa.io/get-pip.py,然后直接sudo python get-pip.py,pip就安装好了。 先下载https://bootstrap.pypa.io/get-pip.py,然后直接sudo python get-pip.py,pip就安装 阅读全文
posted @ 2018-08-31 18:24 爱吃醋的工程师 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 经常在使用python的时候需要安装各种模块,而pip是很强大的模块安装工具,但是由于国外官方pypi经常被墙,导致不可用,所以我们最好是将自己使用的pip源更换一下,这样就能解决被墙导致的装不上库的烦恼。 网上有很多可用的源,例如豆瓣:http://pypi.douban.com/simple/ 阅读全文
posted @ 2018-08-09 22:57 爱吃醋的工程师 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-08-08 15:18 爱吃醋的工程师 阅读(106) 评论(0) 推荐(0) 编辑
摘要: //引用加密库 document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); // JavaScript Document DelCookie("only_use_webrc");// 清除只使用WEB资源标记 DelCookie("webonly");//... 阅读全文
posted @ 2018-07-21 19:00 爱吃醋的工程师 阅读(1772) 评论(0) 推荐(0) 编辑
摘要: 我使用的是minimal模式安装的,默认是无法联网的,需要自己配置,下面我列举2种联网的配置方法 方法1: 默认使用的是NAT模式,修改/etc/sysconfig/network-scripts/ifcfg-eth0 方法2: 桥接模式下指定固定IP 修改完之后冲洗network测试下网络即可: 阅读全文
posted @ 2018-07-17 21:04 爱吃醋的工程师 阅读(412) 评论(0) 推荐(0) 编辑
摘要: git reset --soft HEAD^ 回退commit git commit --amend 修改commit 阅读全文
posted @ 2018-07-09 09:46 爱吃醋的工程师 阅读(108) 评论(0) 推荐(0) 编辑
摘要: str != null || !"".equals(str.trim()) 阅读全文
posted @ 2018-07-09 09:36 爱吃醋的工程师 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 0"> AND A.PROC_TARGET_ID IN #{tenantId} 阅读全文
posted @ 2018-07-09 09:32 爱吃醋的工程师 阅读(2795) 评论(0) 推荐(0) 编辑
摘要: 使用distinct是查询结果不重复 阅读全文
posted @ 2018-07-06 16:04 爱吃醋的工程师 阅读(129) 评论(0) 推荐(0) 编辑
摘要: npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver 阅读全文
posted @ 2018-07-06 00:54 爱吃醋的工程师 阅读(361) 评论(0) 推荐(0) 编辑
摘要: git reset --soft HEAD^ 阅读全文
posted @ 2018-07-06 00:54 爱吃醋的工程师 阅读(116) 评论(0) 推荐(0) 编辑
摘要: import React,{Component} from 'react'; import { Select } from 'antd'; const Option = Select.Option; const provinceData = ['Zhejiang', 'Jiangsu']; const cityData = { Zhejiang: ['h20','h21','h22'],... 阅读全文
posted @ 2018-07-02 08:35 爱吃醋的工程师 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 组件生命周期 React Component通过其定义的几个函数来控制组件在生命周期的各个阶段的动作。 constructor(props, context) 构造函数,在创建组件的时候调用一次。 void componentWillMount() 在组件挂载之前调用一次。如果在这个函数里面调用setState,本次的render函数可以看到更新后的state,并且只渲染一次。 voi... 阅读全文
posted @ 2018-06-22 17:26 爱吃醋的工程师 阅读(124) 评论(0) 推荐(0) 编辑
摘要: e.preventDefault(); 阅读全文
posted @ 2018-06-22 17:25 爱吃醋的工程师 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 如果使用的是es6的语法,也就是采用继承React.Component的方法来构建组件的话,就不能使用getInitialState()函数,会报警告 Warning: getInitialState was defined on TodoApp, a plain JavaScript class. This is only supported for classes created using... 阅读全文
posted @ 2018-06-22 17:20 爱吃醋的工程师 阅读(388) 评论(0) 推荐(0) 编辑
摘要: ①components:最基础的组件。这里面存放的只是最基本的UI组件,这些组件接收外部传过来的参数(数据),并将这些数据渲染的到界面。根据传入的参数的不同,界面渲染也不同。 ②container:contatiner负责将数据的组件进行连接,相当于将compontent组件和store里面的数据进行包装,生成一个新的有数据的组件。然后,在router.js配置文件中引用container中的组... 阅读全文
posted @ 2018-06-19 15:23 爱吃醋的工程师 阅读(939) 评论(0) 推荐(0) 编辑
摘要: //自动调整 export default class test1 extends Component{ constructor(props) { super(props); this.handleChange = this.handleChange.bind(this) this.state={ items:[], text:'' }... 阅读全文
posted @ 2018-06-15 10:27 爱吃醋的工程师 阅读(532) 评论(0) 推荐(0) 编辑
摘要: export default class TimerTest extends Component{ constructor(props) { super(props); this.state = { seconds:0 }; } tick(){ this.setState(preState =>({ seconds:preSt... 阅读全文
posted @ 2018-06-15 10:13 爱吃醋的工程师 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 区别 阅读全文
posted @ 2018-06-07 21:45 爱吃醋的工程师 阅读(124) 评论(0) 推荐(0) 编辑
摘要: maven 消费者 class 生产者 class 实体类 xml配置文件 阅读全文
posted @ 2018-05-30 21:07 爱吃醋的工程师 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.默认你已经安装了zookeeper3.4.8 and 关闭防火墙 kafka:2.9.2-0.8.2.1 kafka 官方下载地址 http://apache.fayea.com/kafka/0.8.2.1/kafka_2.9.2-0.8.2.1.tgz bin/kafka-server-sta 阅读全文
posted @ 2018-05-19 13:01 爱吃醋的工程师 阅读(1439) 评论(0) 推荐(0) 编辑
摘要: response.setCharacterEncoding("utf-8"); response.setContentType("application/json;charset=utf-8"); response.getWriter().write("json串"); 阅读全文
posted @ 2018-05-16 16:11 爱吃醋的工程师 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 1. 使用redis有哪些好处? (1) 速度快,因为数据存在内存中,类似于HashMap,HashMap的优势就是查找和操作的时间复杂度都是O(1) (2) 支持丰富数据类型,支持string,list,set,sorted set,hash (3) 支持事务,操作都是原子性,所谓的原子性就是对数 阅读全文
posted @ 2018-05-14 00:55 爱吃醋的工程师 阅读(369) 评论(0) 推荐(0) 编辑
摘要: firewall-cmd --permanent --add-port=8080/tcp firewall-cmd -reload 阅读全文
posted @ 2018-05-13 20:33 爱吃醋的工程师 阅读(153) 评论(0) 推荐(0) 编辑
摘要: properties.load(DBUtility.class.getClassLoadrt()).getResourceAsStream(path); 阅读全文
posted @ 2018-05-13 20:24 爱吃醋的工程师 阅读(204) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class Demo001 { public static void main(String[] args) { String str = ""; Scanner scan = new Scanner(System.in); ... 阅读全文
posted @ 2018-05-12 21:42 爱吃醋的工程师 阅读(3716) 评论(0) 推荐(0) 编辑
摘要: 最近无意间发现Nginx官方提供了Yum源。因此写个文章记录下。 1、添加源 默认情况Centos7中无Nginx的源,最近发现Nginx官网提供了Centos的源地址。因此可以如下执行命令添加源: 2、安装Nginx 通过yum search nginx看看是否已经添加源成功。如果成功则执行下列命 阅读全文
posted @ 2018-05-12 11:39 爱吃醋的工程师 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 如果使用vsftp的是本地用户则要修改配置文件中的 local_umask 的值如果使用vsftp的是虚拟用户则要修改配置文件中的 anon_umask 的值 umask = 022 时,新建的目录 权限是755,文件的权限是 644umask = 077 时,新建的目录 权限是700,文件的权限时 阅读全文
posted @ 2018-05-12 11:38 爱吃醋的工程师 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 服务器端防火墙都关闭了 win10 的防火墙也必须关闭 阅读全文
posted @ 2018-05-12 10:22 爱吃醋的工程师 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Linux在安装好之后通常SELinux都是出于默认开启的状态,开启的情况下会导致一些服务的安装不成功。 在不需要的情况下完全可以关闭掉,下面是在centos 7.0里面如何查看,关闭selinux。 查看selinux状态 临时关闭 永久关闭,可以修改配置文件/etc/selinux/config 阅读全文
posted @ 2018-05-12 10:20 爱吃醋的工程师 阅读(788) 评论(0) 推荐(0) 编辑
摘要: web.xml 添加 阅读全文
posted @ 2018-05-12 01:03 爱吃醋的工程师 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1、运行环境及相关软件 CentOS 6.5 FastDFS_v5.08.tar.gz nginx-1.8.1.tar.gz fastdfs-nginx-module_v1.16.tar.gz libfastcommon 安装FastDFS 1)首先创建工具目录(非必须) 2) 下载并安装FastD 阅读全文
posted @ 2018-05-11 12:08 爱吃醋的工程师 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 在安装Gnome包之前,需要检查一下安装源(yum)是否正常,因为需要在yum命令来安装gnome包。 第一步:先检查yum 是否安装了,以及网络是否有网络。如果这两者都没有,先解决网络,在解决yum的安装。 (配置步骤可以查看我的博客文章-centOS-配置网络地址-的步骤来实现 ) 第二步:在命令行下 输入下面的命令来安装Gnome包。 # ... 阅读全文
posted @ 2018-05-11 10:50 爱吃醋的工程师 阅读(246) 评论(0) 推荐(0) 编辑
摘要: org.apache.maven.plugins maven-resources-plugin 2.7 UTF-8 org.apache.maven.plugins maven-compiler-plugin 3.2 1.7 1.7 UT... 阅读全文
posted @ 2018-05-10 18:41 爱吃醋的工程师 阅读(941) 评论(0) 推荐(0) 编辑
摘要: // Allows post-processing of the bean factory in context subclasses. postProcessBeanFactory(beanFactory); 1.空实现 ioc容器 // Invoke factory processors reg 阅读全文
posted @ 2018-05-10 18:02 爱吃醋的工程师 阅读(97) 评论(0) 推荐(0) 编辑
摘要: pageContext.request.contextPath 阅读全文
posted @ 2018-05-10 17:24 爱吃醋的工程师 阅读(106) 评论(0) 推荐(0) 编辑
摘要: <Connector port="80" protocol="org.apache.coyote.http11.Http11NioProtocol" connectionTimeout="20000" URIEncoding="UTF-8"useBodyEncodingForURI="true" e 阅读全文
posted @ 2018-05-09 15:35 爱吃醋的工程师 阅读(564) 评论(0) 推荐(0) 编辑
摘要: @before 在每个测试方法之前都会运行一次,只需声明成public @beforeclass 在类中只运行一次,必须声明成public static 阅读全文
posted @ 2018-05-03 23:14 爱吃醋的工程师 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 1.pom 2.db.properties 3.spring-mvc 3.Mybatis配置 阅读全文
posted @ 2018-04-29 10:20 爱吃醋的工程师 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 内存溢出:剩余内存不足以分配给请求的资源 OutOfMemoryError 内存泄漏:分配出去的内存收不回来 阅读全文
posted @ 2018-04-28 08:50 爱吃醋的工程师 阅读(116) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页