
Java
文章平均质量分 74
NEUandUSTBneo
小的时候喜欢上数学课,中学做过数学课代表,本科读数学专业,研究生还是数学,注定与数学有缘。曾经怀疑自己当初的选择,但慢慢发现自己正因此而受益匪浅,而且欣慰的是目前正走在一条真正属于自己的道路上a hrefhttps://plus.google.com/103387940037994705995 relpublisherGoogle/a
展开
-
[Java EE][Security] - Understanding Security Realms - 2. DB authentication and authorization
Database is the most commonly used media to store authentication and authorization information for application.This example is setting up a database for application authentication model which bases on security realms framework. The database can apply to y原创 2016-03-27 00:09:16 · 611 阅读 · 0 评论 -
[Java EE][Security] - Understanding Security Realms - Logout
1. Logout single application (single session) session.invalidate();2. Logout application which shares session with other applications (WebLogic)logoutpublic static boolean logout(HttpServ原创 2016-02-16 16:12:42 · 398 阅读 · 0 评论 -
[weblogic] - session-timeout in web.xml does not work on WebLogic11g?
How to set session-time for Java Web Application deployed on WebLogic?Two Ways to Set session-timeThere are two places to set session timeout for java web application if it will deploy on WebLogic原创 2016-02-15 12:20:30 · 951 阅读 · 0 评论 -
[JSP] - frequently-used skills
Today I took use of JSP to create login page and loginFailed page for my project. Google is not absent again. I have not been approaching this for very long time, but they are basics and will become u原创 2016-02-12 16:50:47 · 462 阅读 · 0 评论 -
[Java EE][Security] - Understanding Security Realms - 1. Main Thought
Securing ContainersIn Java EE, the component containers are responsible for providing application security. A container provides two types of security: declarative and programmatic.Realm, User原创 2016-01-01 23:23:19 · 511 阅读 · 0 评论 -
[springframework] - Spring MVC Implements RESTful
This instructions is on targets for following requirements:maven managementspring mvc frameworkannotation configurationJSON auto converting1. POM and core dependencies to unify spring ver原创 2015-12-22 09:42:31 · 481 阅读 · 0 评论 -
[hibernate] - hibernate modules
modulesdescrptionhibernate-coreThe main (core) Hibernate module. Defines its ORM features and APIs as well as the various integration SPIs.hibernate-entitymanagerSupport for JPA. JPA原创 2015-09-20 21:19:41 · 450 阅读 · 0 评论 -
[JavaSecurity] - RSA Encryption
Using RSA encrypt your data.原创 2015-08-11 21:15:39 · 778 阅读 · 0 评论 -
[JavaSecurity] - AES Encryption
AES algorithmJava example原创 2015-08-08 14:57:39 · 694 阅读 · 0 评论 -
[MAVEN] - Package a Web Application into EAR
1. Introduce EAR file2. Create a Enterprise Application (EAR) to assemble a Java Web Application (WAR)原创 2015-04-27 22:47:08 · 469 阅读 · 0 评论 -
[MAVEN] - Add "provided" and "test" scopes for dependency
Solve "provided" dependency can't be accessed in unit test code and unit test environment in maven pom file.原创 2015-04-25 17:54:57 · 718 阅读 · 0 评论 -
[springframework] - 1. Overview
*** The following words, some are culled from Official Spring Framework Reference and some are summarized from my working practice.Springframework introduction原创 2015-04-04 21:57:59 · 903 阅读 · 0 评论 -
[spring security] - Spring security LDAP configuration - Search approach
Simple XML" />" />原创 2014-03-12 15:35:02 · 1032 阅读 · 0 评论 -
[spring security] - LDAP configuration - Bind approach
Springsecurity LDAP authentication sample XML. " />" />" /> uid={0},ou=People cn sn uid原创 2014-03-12 10:56:28 · 1275 阅读 · 0 评论 -
[springframework] - DispatcherServlet and WebApplicationContext
1. Default context configuration xml, [servlet-name]-servlet.xmlConfigure DispatcherServlet in web.xml dispatcherServlet org.springframework.web.servlet.DispatcherServlet 1 dispatcherSe原创 2014-03-04 11:16:11 · 1012 阅读 · 0 评论 -
SSL configuration on Tomcat 7
SSLSecure Socket Layer. Is it safe? Maybe.TLSTransport Layer Security, SSL is it predecessor. They are cryptographic protocol which provide communication security over internet.Is TLS sa原创 2013-04-16 00:11:00 · 1041 阅读 · 0 评论 -
GWT开发 - 开发环境搭建 Maven+NetBeans+Tomcat
1.创建GWT maven项目我使用netbeans的版本是7.2.12.按装必要的插件maven:NetBeans对Maven的支持应该是默认,插件默认已经安装了。安装NetBeans GWT插件Tools--》PluginsInstalled--》选中Show details--》搜索GWT4NB--》选中后,点击Activate按钮原创 2012-12-25 17:28:28 · 1896 阅读 · 0 评论 -
GWT开发 - 开发环境搭建 Maven+Eclipse+Tomcat
1.创建GWT Maven项目2.安装必要的Eclipse插件2.1 Maven Integration for Eclipse (m2e)支持Java maven项目。2.2 Maven Integration for Eclipse WTP2.3 Google plugin and GWT SDK3.导入GWT Maven项目3.1 作为Existi原创 2012-12-24 01:15:15 · 5693 阅读 · 1 评论 -
GWT开发 - 创建GWT Maven Project
使用工具创建GWT Maven Project有两种方式,使用GWT Command-line Tools和Maven GWT Plugin。1. 使用GWT Command-line Tools创建maven project要使用webAppCreator命令,运行webAppCreator -helpWebAppCreator [-overwrite] [-ignore原创 2012-12-03 00:45:05 · 3675 阅读 · 0 评论 -
ServiceMix - JBI - 1. Overview
OverviewWhat is JBI ?A Brief Intro to JBIA brief introduction to JBI is available in the What is JBI? document. This document is more in-depth and supplemental.Th翻译 2012-09-13 11:03:06 · 1042 阅读 · 0 评论 -
ServiceMix - [Quickstart]6.我遇到的几个问题
这是我在阅读与试验过程中所遇到的几个问题。希望对你有所帮助。1. 运行activemq:list指令时发生错误。karaf@root> activemq:listConnecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmiERROR: java.lang.RuntimeException原创 2012-09-11 15:10:52 · 2382 阅读 · 1 评论 -
ServiceMix - [Quickstart]5.可选的特性
Optional features目前在Quickstart中讨论过的都是Apache ServiceMix中现成的功能,其实我们有很多可选的特性可以在我们需要它们的时候安装。List of featuresfeatures:list命令可以列出所有平台可能支持的特性。在列表中我们可以查看它们目前是否被安装、版本和特性的名字。整个列表包括很多不同的特性:可选翻译 2012-09-11 14:11:22 · 1025 阅读 · 0 评论 -
ServiceMix - [Quickstart]4.添加ActiveMQ
Adding ActiveMQ to the 'Mix开箱即用,每一个Apache ServiceMix Instance(实例)会带一个嵌入的ActiveMQ JMS broker(代理)。它使得在同一机器上的Camel route之间使用持久化的消息进行通信变得简单。它也可以让你跨Instance(实例)路由,用来实现clustering(集群)和load-balancing(负载均衡翻译 2012-09-11 12:05:58 · 1380 阅读 · 0 评论 -
ServiceMix - [Quickstart]3.通过Camel路由
Using Camel现在我知道了如何通过shell console来操作Apache ServiceMix,现在是时候来使用它了,这也是这些命令为什么被创建。让我们通过Camel route来创建我们第一个集成解决方案并把它部署到ServiceMix下。Our simple scenario在这个简单的方案中,我们打算把一个文件从一个目录camel\input移到另一个目翻译 2012-09-11 01:25:56 · 1077 阅读 · 0 评论 -
ServiceMix - [Quickstart]2.控制台
Apache ServiceMix console现在你已经成功的安装并启动了你的Apache ServiceMix,我们会在更近的距离上来看控制台。你要在这儿来管理你的ServiceMix实例,添加和删除包(部署的应用。bundles,不知道该如何翻译),安装可选的特性,...Working with bundles当ServiceMix第一次启动,那些为产品提供核心特性翻译 2012-09-10 22:32:31 · 1789 阅读 · 1 评论 -
ServiceMix - [Quickstart]1.安装
Apache ServiceMix 官方网站Apache ServiceMix下载Apache ServiceMix 是一个灵活的,开源的集成容器,他将 Apache ActiveMQ, Camel, CXF, ODE,Karaf 的特性与功能集成与一个强大的运行时平台,你可以利用他来构建你自己的集成方案。他提供了一个完整的、胜任企业级应用的、独家采用OSGI的ESB。他在翻译 2012-09-10 17:33:23 · 2228 阅读 · 0 评论 -
GWT开发 - Eclipse, Google Plugin and Google Web Toolkit SDK
Google Web Toolkit 官方地址1 在eclipse上安装Google plugin针对不同版本eclipse的插件下载地址:Eclipse 4.2 (Juno)http://dl.google.com/eclipse/plugin/4.2Eclipse 3.7 (In原创 2012-09-01 16:49:08 · 7651 阅读 · 0 评论