自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

板三的梦

奔跑的猿之程序点滴

  • 博客(61)
  • 收藏
  • 关注

原创 Deno开发REST API实战

从Deno基础知识、环境搭建,到常用第三方框架或模块,一步步学习Deno开发REST API。涉及Oak、TypeORM、安全、校验、测试等

2020-09-05 13:42:20 2563 1

原创 Kotlin+Spring Boot开发REST API实战

Kotlin与JAVA对比简洁之处、不同之处;从基础配置、Entity、Repository、REST Controller,到异常处理、Security、测试、集成Swagger,一步步学习Kotlin+Spring Boot开发。

2020-07-23 21:20:30 3406

原创 Linux下安装Apache HTTP Server 2.4

编译安装安装前先执行:# yum install -y gcc gcc-c++# yum install -y expat expat-devel openssl-devel下载apache httpd 2.4,安装包中不包含APR、APR-Util 和Perl-Compatible Regular Expressions Library (PCRE),如系统中没有安...

2017-12-11 20:17:34 814

原创 JSF应对Cross-Site Request Forgery (CSRF)攻击

JSF 2.x has already builtin CSRF prevention in flavor of javax.faces.ViewState hidden field in the form when using server side state saving. In JSF 1.x this value was namely pretty weak and too easy...

2017-09-05 09:49:04 654

原创 JBoss EAP 6常见问题

1. Jboss EAP 6 配置 URI_ENCODINGIn order to set UTF-8 for URI encoding you have to edit the JBOSS_HOME/standalone/configuration/standalone.xml file and add a system property named org.apache.catalin...

2017-06-07 22:47:10 1454

原创 Jboss EAP 6 JAX-WS和JMS超时设置

1. WS Client Timeout在Jboss EAP 6中调用web service,发生以下错误:Invoke has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Could not send Messagejava.net.SocketTimeoutException: Read ...

2017-05-10 11:02:40 462

原创 Maven文件重命名

最近一直在做老系统的升级项目,其中不同环境的配置文件使用了不同的名字,那怎样利用Maven重命名文件呢?可以使用copy-rename-maven-plugin插件,如下:<build> <resources> <resource> <directory>src/main/resources&l...

2017-05-07 14:09:47 3967

原创 Jboss EAP 6 EJB调用常见问题

1. 调用EJB的三种方法调用EAP 6 EJB的第一种方法,使用JBoss API,如下:Properties p = new Properties();p.put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED", "false");p.put("remote.connection...

2017-03-13 17:59:10 426

原创 常用协议端口号

SSH             22SMTP          25DNS(UDP)    53DNS(TCP)    53HTTP           80POP3           110IMAP             143LDAP            389HTTPS          443SMTPS         465IMAPS  ...

2017-02-24 22:12:22 738

原创 Linux zip小知识

1. zip如何排除文件夹zip -r jason.zip jason/* -x jason/backports-4.4.2-1/\*以上命令打包jason文件夹,排除其中的backports-4.4.2-1文件夹如果改成这样:zip -r jason.zip jason/* -x jason/backports-4.4.2-1\*会排除其中以backports-4....

2016-11-11 11:17:47 167

原创 Maven打包后为何文件大小改变了

项目中使用了X.509证书,用Maven打包后,测试时报错:java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: Invalid BER/DER data (too huge?)查找了好一会儿原因,才发现证书文件确实变huge了。这是怎么导致的呢,因为r...

2016-10-28 17:39:51 1651

原创 No EJB receiver available for handling ...

No EJB receiver available for handling ...在Jboss EAP 6中,调用远程EJB时出现这个错误, 原因可能是JNDI格式写错了。EJB JNDI的格式如下:ejb:<appName>/<moduleName>/<distinctName>/<beanName>!<viewClass...

2016-07-02 17:25:22 798

原创 Jboss AS 5/6升级时遇到的问题

1. Jboss AS 6使用jdk7时的异常处理异常信息为:org.jboss.wsf.stack.cxf.deployment.jms.JMSDescriptorProcessorImpl cannot be cast to org.jboss.wsf.spi.metadata.webservices.WebservicesDescriptorProcessor解决方...

2016-07-02 16:36:33 562

原创 在Jboss EAP 6/Wildfly中使用Hibernate 3和JSF 1.2

在EAP 6中使用JSF1.2增加jboss-deployment-structure.xml文件,其内容如下:<jboss-deployment-structure> <deployment> <exclusions> <module name="javax.faces.api...

2016-04-28 15:39:13 446

原创 JDK 8 静默安装

    相信不少朋友遇到过,安装JDK 8 时,运行安装程序后没有任何反应,没有显示安装界面。检查任务管理器,发现是有两个JDK安装进程的:     那安装程序在运行么?实际上安装程序在正常执行,当进程结束后,你会发现JDK已经安装好啦。    原来JDK 8 支持静默安装。安装配置文件位于C:\ProgramData\Oracle\Java\java.settings.cfg,其...

2016-03-25 10:05:32 831

原创 Connection Refused

There could be many reasons, but the most common are:The port is not open on the destination machine.The port is open on the destination machine, but its backlog of pending connections is full.A ...

2016-01-21 10:26:54 491

原创 FTP FTPS和SFTP

一、协议知识FTP FTP (File Transfer Protocol,RFC 959)是TCP/IP网络上用于文件传输的标准协议,基于C/S架构,可以上传、下载、删除文件,创建或改变服务器上的目录。在客户端和服务器间要建立分离的控制和数据连接,控制连接用于Session管理,如交换命令和回复、交换用户标识和密码等,数据连接用于传输数据。FTP使用明文登录协议验证用户名和密码,如果服...

2016-01-20 13:02:37 1058

原创 JavaScript兼容问题

1. window.framesReturns the window itself, which is an array-like object, listing the direct sub-frames of the current window.window.frames[0] is the same thing as document.getElementsByTagName...

2016-01-06 17:31:42 130

原创 Handle Windows Authentication in Selenium Webdriver

First approachYou can provide credentials in URL itself it means we will add username and password in URL so while running script it will bypass the same.Syntaxhttp://username:password@urlExa...

2015-12-04 22:16:17 261

原创 Linux下安装MySQL Web 管理工具phpMyAdmin

PHP http://php.net/phpMyAdmin http://www.phpmyadmin.netError compiling PHP on CentOS x64一、安装Apache请参阅http://billben.iteye.com/admin/blogs/1985244二、安装依赖包sudo yum install gdsudo yu...

2015-05-11 16:20:18 449

原创 Jboss EAP 6启用CXF日志

1. 在standalone.xml配置文件中添加system-properties: <system-properties> <property name="org.apache.cxf.logging.enabled" value="true"/> </system-properties>2. 在logging s...

2015-05-04 16:01:27 171

原创 TeamForge Wiki Syntax & CollabNet User Information Center

the CollabNet user information center http://help.collab.net/How do I create a new Wiki page?A CollabNet TeamForge project can have any number of Wiki pages. All Wiki pages are linked, and th...

2015-03-26 13:52:27 203

原创 Java代码混淆工具

Open Source ObfuscatorsProGuardhttp://java-source.net/open-source/obfuscators/proguardProGuard is a free Java class file shrinker and obfuscator. It can detect and remove unused classes, fields,...

2015-03-05 23:05:10 577

原创 利用svnsync实现SVN同步备份

1. 在备份SVN服务器上建立版本库 svnadmin create test2. 创建pre-revprop-change文件 cd test/hooks/ cp pre-revprop-change.tmpl pre-revprop-change chmod 755 pre-revprop-change3. 修改pre-revprop-chan...

2014-10-15 12:41:16 470

原创 Connecting VisualVM with a remote JBoss AS 7 / EAP6 JVM process

http://blog.akquinet.de/2012/11/01/connecting-visualvm-with-a-remote-jboss-as-7-eap6-jvm-process/VisualVM is a useful tool for monitoring and simple profiling of JVM processes. It integrates vario...

2014-10-10 21:04:05 137

原创 使用contact-list获取邮箱通讯录

contact-list https://github.com/flyerhzm/contactlist 在一项目中使用了contact-list获取邮箱通讯录,因作者没有时间继续更新这个项目,现在不能取得163邮箱通讯录。 我对OneSixThreeImporter做了一些修改,可以获得联系人了。其中contactsUrl 使用了 "http://tg4a...

2014-05-08 16:17:49 4456

原创 JBoss EAP6/AS7 Application Logging

The Blog  http://blog.jyore.com/?p=234IntroductionWhen it comes down to it, logging is one of the most important parts of an application. Logging, when done correctly, allows us to monitor code ...

2014-04-25 12:41:23 229

原创 在CentOS 6中使用mencoder/ffmpeg进行视频转码

MPlayer http://www.mplayerhq.hu/FFmpeg http://ffmpeg.org/ 使用mencoder转码安装mplayer和mencoder# yum install mplayer RPMForge Repository Dependencies Resolved:==============================...

2014-04-18 10:59:57 251

原创 使用htmlUnit和Jsoup获取163邮箱通讯录

import java.io.IOException;import java.net.URL;import java.util.ArrayList;import java.util.List;import org.jsoup.Jsoup;import org.jsoup.nodes.Document;import org.jsoup.select.Elements;import com...

2014-04-08 16:08:38 382

原创 POP3、SMTP和IMAP

POP3POP3是Post Office Protocol 3的简称,即邮局协议的第3个版本,它规定怎样将个人计算机连接到Internet的邮件服务器和下载电子邮件的电子协议。它是因特网电子邮件的第一个离线协议标准,POP3允许用户从服务器上把邮件存储到本地主机(即自己的计算机)上,同时删除保存在邮件服务器上的邮件,而POP3服务器则是遵循POP3协议的接收邮件服务器,用来接收电子邮件的。...

2014-04-06 17:14:58 957

原创 Unable to import Maven project into IntelliJ IDEA: looking for available profile

I import a maven project ,it starts to scan maven projects, looking for available profiles. and I can see the Progress bar. but it takes a long time and back to the first step again.--------------...

2014-03-13 09:24:17 373

原创 axis ticks with thousands separators in jqplot

jqPlot http://www.jqplot.com/Display large numbers with thousands separators, e.g. (1234567 => "1,234,567").Use the "'" (that's a single quote , ') format specifier to have thousands sep...

2014-01-03 23:01:50 153

原创 h:inputText return a empty string instead of NULL

You can configure JSF 2.x to interpret empty submitted values as null by the following context-param in web.xml:<context-param>    <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTE...

2013-12-10 11:11:14 160

原创 JBoss EAP 6与Apache通信的mod_jk配置

安装Apache    以下是httpd 2.2的安装步骤(如使用httpd 2.4,请参考Linux下安装Apache HTTP Server 2.4):1. 安装    下载解压后进入httpd的根目录,依次执行如下命令:     # ./configure --prefix=PREFIX --enable-so --enable-mods-shared=most --en...

2013-12-04 17:55:01 291

原创 JSF 2.0利用JS函数处理Ajax异常

    JSF2.0规范中定义Ajax异常信息的形式为:<partial-response> <error> <error-name>...</error-name> <error-message>...</error-message> </error>&

2013-11-18 21:19:11 280

原创 Restricting the Number of Views in a Session

     <context-param>        <param-name>com.sun.faces.numberOfViewsInSession</param-name>        <param-value>15</param-value>    </context-param>    <context...

2013-10-22 14:16:32 139

原创 CSS常见问题

1. how to make word-break on firefox using cssUse the following rules together:/* For Firefox */white-space: pre-wrap;word-break: break-all;/* For Chrome and IE */word-wrap: break-word;2....

2013-09-27 13:20:04 85

原创 JSF2.0如何下载文件

1. 直接使用文件链接<h:outputLinkvalue="#{request.contextPath}/resources/file/hello.pdf">          <h:graphicImagelibrary="images"name="pdf.jpg"style="border:none"/></h:outputLink&am

2013-09-15 21:34:14 191

原创 linux怎么完全卸载mysql数据库

    原文:http://blog.csdn.net/love__coder/article/details/6894566    在linux下开发,mysql数据库是经常用到的,对于初学者来说,在linux怎么安装卸载mysql数据库,也许可能比较痛苦,这里简单介绍下,怎么卸载msql数据库。a)查看系统中是否有rpm包安装的mysql[root@linux ~]# rpm ...

2013-09-09 21:42:02 233

原创 JSF2.0中CSS图像相对路径的写法

     在JSF2.0中,css、javascript、images应放在resources文件夹中。     在页面中,使用如下JSF标签引用:<h:outputStylesheetlibrary="css"name="style.css"/><h:outputScript library="javascript" name="jsf.js" target...

2013-09-08 22:38:11 352

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除