![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自学问题汇总
JusterBetter
不要被限制思维
展开
-
尝试使用request.getRemoteAddr()时获得ipv6地址:0.0.0.0.0.0.0.1的解决方法
如果tomcat运行在IPV6启用的服务器环境中,比如windows server 2008,如果用IPV4的地址去访问8080端口,连接将会失败。即使在hosts文件中配置了:: localhost127.0.0.1 localhost也是没有效果的。因为这是tomcat的问题,我们需要在tomcat目录下,将server.xml中的address指定为使用IPV4,详细配置可以参考如下转载 2016-01-15 22:51:30 · 1367 阅读 · 0 评论 -
chm文档索引程序错误
在运行中注册三个组件即可regsvr32 hhctrl.ocx regsvr32 itss.dll regsvr32 itircl.dll转载 2016-01-17 16:46:58 · 631 阅读 · 0 评论 -
byte[] bs = new byte[1024]问题
byte[] bs = new byte[1024]; int i = 0; while((i=in.read(bs))!=-1){ out.write(bs, 0, i); } //每次以bs的大小读取文件,也就是1024B=1kB,/* 初学者有时不容易开窍,我来做个启蒙吧 设想一个存储器,只有一条地址线A0,那么这个存储器只能有2个单元原创 2016-01-06 09:24:15 · 5690 阅读 · 0 评论 -
classloader的一个class文件,一个是类文件
class Service() {}; Service.class.getClassLoader this.getClass().getLoader //注意两者的区别,一个是class文件,一个是类文件原创 2016-01-05 15:09:48 · 391 阅读 · 0 评论 -
bit、byte、位、字节、汉字的关系
bit、byte、位、字节、汉字的关系 1 bit = 1 二进制数据 1 byte = 8 bit 1 字母 = 1 byte = 8 bit 1 汉字 = 2 byte = 16 bit转载 2016-01-10 10:49:05 · 506 阅读 · 0 评论