`
snrqtdhuqf
  • 浏览: 79271 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

数字证书

    博客分类:
  • Java
利用openssl 生成p12文件, 生成密钥对 openssl genrsa -out private.key 2048   证书申请     openssl req -new -out root.csr -key private.key   自签署证书 openssl x509 -req -in root.csr -out cert.pem -signkey private.key -days 3650 其它证书用CA来签署 openssl x509 -req -in root.csr -out cert.pem -CA cert.pem -CAkey private.key ...
  下面是一个简单的例子   package com.yydone.dto; import java.io.Serializable; import java.util.List; public class ItemInfoDto implements Serializable { private static final long serialVersionUID = 1L; private Integer itemCount; private List<ItemDto> itemList; public Integer ge ...
下面是简单的java对zookeeper的操作 package com.yydone.zookeeper; import java.io.IOException; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.ZooDefs.Ids; i ...
下面的是zookeeper的一些操作命令 帮助命令:help [zk: 127.0.0.1:2181(CONNECTED) 2] help ZooKeeper -server host:port cmd args connect host:port get path [watch] ls path [watch] set path data [version] rmr path delquota [-n|-b] path quit printw ...
进入http://zookeeper.apache.org/releases.html下载zookeeper的最新稳定版本, 当前稳定版本为zookeeper-3.4.6.tar.gz   解压到/usr/local/zookeeper 进入 [root@localhost conf]# pwd /usr/local/zookeeper/zookeeper-3.4.6/conf  修改zoo_sample.cfg为zoo.cfg zoo.cfg文件内容为 [root@localhost conf]# cat zoo.cfg # The number of millisec ...
[root@localhost ~]# rpm -ivh jdk-7u15-linux-x64.rpm  Preparing...                ########################################### [100%]    1:jdk                    ########################################### [100%] Unpacking JAR files...         rt.jar... Error: Could not open input file: /usr/java ...
yum自动安装: yum install lrzsz   进入选项-会话选项-终端-x/y/Zmodem可以设置上传和下载目录
spring-async-test.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" ...
在使用hessian进行远程调用时,BigDecimal的值为0,查看当前版本为4.0.33版本, 把4.0.33版本替换成4.0.37就可解决此问题 或者 增加下面两个文件,打入hessian包。 /META-INF/hessian/serializers,内容如下: java.math.BigDecimal=com.caucho.hessian.io.BigDecimalDeserializer   /META-INF/hessian/deserializers java.math.BigDecimal=com.caucho.hessian.io.StringValueS ...
使用的jackson版本为 jackson-databind-2.1.3.jar jackson-annotations-2.1.2.jar jackson-core-2.1.3.jar 在使用过程中发生了一个如下异常 com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "age" (class test.json.TE), not marked as ignorable (3 known properties: , "id", ...
ITestService package com.yydone.service; public interface ITestService { public String say(); public String doSomething(); }  TestService package com.yydone.service.impl; import org.springframework.stereotype.Service; import com.yydone.service.ITestService; @Service publi ...

spring hessian的使用

    博客分类:
  • Java
ITestService接口 package com.yydone.service; public interface ITestService { public String say(); public String doSomething(); }  TestService实现 package com.yydone.service.impl; import org.springframework.stereotype.Service; import com.yydone.service.ITestService; @Service pub ...
1 点击package explorer视图中向下的箭头2 进入Filters选项卡3 选择Closed Projects,这样被关闭的项目就不会显示在packege explorer中了。
数字证书密钥对生成 package com.test; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.NoSuchAlgorithmException; public class KeyPairTest { public static KeyPair getRSAKeyPair(int length) throws NoSuchAlgorithmException { KeyPairGenerator kpg = Key ...
下面的例子是获取request中的参数,一个简单的servlet package com.yydone.web; import java.io.IOException; import java.util.Map; import java.util.Map.Entry; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServl ...
Global site tag (gtag.js) - Google Analytics