摘要:
单机版 1.入门实例 @Test public void testJedis(){ //创建一个jedis对象,需要指定服务的ip和端口号 Jedis jedis=new Jedis("192.168.25.11",6379); //直接操作数据库 jedis.set("str","nihao"); 阅读全文
摘要:
一、异常的架构: Throwable类:所以异常类都是Throwable的子类,它派生两个子类 Error和Exception。 Error类:表示仅靠程序本身无法恢复的的严重错误,比如内存溢出,虚拟机错误等,这些异常除了尽力使程序安全退出外,我们并没有办法去解决,所以开发的时候我们更应该关注的是E 阅读全文
摘要:
最近在用mybatis,之前用过ibatis,总体来说差不多,不过还是遇到了不少问题,再次记录下, 比如说用#{},和 ${}传参的区别, 使用#传入参数是,sql语句解析是会加上"",比如 select * from table where name = #{name} ,传入的name为小李,那 阅读全文
摘要:
修改前 修改后 主要是#{}和${}的区别 如果不懂的可以点击查看Mybatis中#{}和${}传参的区别及#和$的区别小结 阅读全文
摘要:
开放端口的方法: 方法一:命令行方式 1. 开放端口命令: /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT 2.保存:/etc/rc.d/init.d/iptables save 3.重启服务:/etc/init.d/iptables re 阅读全文
摘要:
From 192.168.25.133 icmp_seq=238 Destination Host Unreachable 虚拟机ping主机不通,但是主机可以ping通虚拟机,虚拟机ping不通外网 如果是使用net8模式 我的问题是物理机没有开启服务 将本地服务启动就可以了 阅读全文
摘要:
阅读全文
关于Failed to check the status of the service com.taotao.service.ItemService. No provider available fo
摘要:
原文:http://www.bubuko.com/infodetail-2250226.html 项目中用dubbo发生: Failed to check the status of the service com.taotao.service.ItemService. No provider av 阅读全文
摘要:
打开网页报错: Ambiguous mapping. Cannot map 'handController' method public com.smallchill.core.toolbox.ajax.AjaxResult com.smallchill.smtlamp.controller.Han 阅读全文
摘要:
1.修改远程仓库的位置(maven默认仓库是国外,所以我们下载jar包很慢) 找到我们安装的maven路径下的conf文件夹下的settings.xml文件 将文件复制到 C:\Users\Administrator\.m2\下 ,修改文件中的仓库位置,我用的是阿里云的一个镜像仓库 <mirror> 阅读全文