摘要: 方法一、https://github.com/nodesource/distributions#rpminstall 按照上面地址中的教程安装完后,使用node -v命令报错: -bash: /usr/local/bin/node: 没有那个文件或目录 使用: sudo node -v 则可以运行 阅读全文
posted @ 2016-07-09 01:19 until-u 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 写在前面:前两天想玩linux,在VMware中装了centos,进入系统后发现连不上网,搜了下教程,/etc/sysconfig/network-scripts/目录下没有 ifcfg-e*的文件 创建了一个 ifcfg-eth0,内容如下 重启网络后多了一个文件ifcfg-eno16777736 阅读全文
posted @ 2016-07-03 21:03 until-u 阅读(941) 评论(0) 推荐(0) 编辑
摘要: 首先看官方教程:http://redis.io/download Download, extract and compile Redis with: The binaries that are now compiled are available in the src directory. Run 阅读全文
posted @ 2016-07-02 23:37 until-u 阅读(824) 评论(0) 推荐(0) 编辑
摘要: 一、下载nginx,解压到/usr/local/nginx 二、安装相关依赖 yum -y install pcre-devel openssl openssl-devel yum install gcc gcc-c++ ncurses-devel perl 三、执行 ./configure --p 阅读全文
posted @ 2016-07-02 23:13 until-u 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.ydcss.com/archives/18 http://www.tuicool.com/articles/FJVNZf 1.淘宝npm服务 :npm install cnpm -g --registry=https://registry.npm.taobao.org 2 阅读全文
posted @ 2016-06-29 12:12 until-u 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 官方文档:http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-create-a-deployable-war-file 一:更改程序入口类 Application.java 使其继承SpringBoot 阅读全文
posted @ 2016-06-15 14:00 until-u 阅读(1358) 评论(2) 推荐(0) 编辑
摘要: 1.读取application.properties 使用:在需要的地方 注入该文件,@Autowired xxxConfig xxx; 调用xxx.getXxx()方法即可 不同运行环境使用不同配置文件: 在application.properties中添加 application-dev.pro 阅读全文
posted @ 2016-06-04 12:17 until-u 阅读(523) 评论(0) 推荐(0) 编辑
摘要: @Configuration public class WebMvcConfig extends WebMvcConfigurerAdapter { @Autowired private XxxInterceptor xxxInterceptor;//需要在该拦截器上添加@Configuration 阅读全文
posted @ 2016-05-25 13:56 until-u 阅读(2615) 评论(0) 推荐(0) 编辑
摘要: spring boot项目出现controller的路由没被注册,原因:启动类application跟controller不在一个包中,扫描不到controller, 如启动类在com.oyx.a,controller在com.oyx.b 解决办法: 方法1:将controller跟启动类放在一个包 阅读全文
posted @ 2016-05-20 16:23 until-u 阅读(4353) 评论(1) 推荐(0) 编辑
摘要: spring 事件发布 阅读全文
posted @ 2016-05-19 11:50 until-u 阅读(774) 评论(0) 推荐(0) 编辑