Spring application of Hibernate second-level cache configuration

Posted on February 14th, 2010 in Java

The first step: In the Spring configuration file by adding the following, with corresponding parameter changes, the red part is the statement using the Hibernate second-level cache, the first one to d ...

struts2 validation framework for configuration

Posted on February 14th, 2010 in Java

It took a long time, and finally somehow, in this contempt for all kinds of mess of assorted forums, found the article a lot, not a few original, are in turn change the past, and many of the steps are ...

CGlib dynamic agent (to undertake the above JDK dynamic proxy)

Posted on February 14th, 2010 in Java

1.CGLib dynamic proxy First, import the development kit: cglib.nodep.jar and Junit.jar Implementations with the JDK or less the same for the convenience of everyone reading the full implementation of ...

Dynamic Proxy

Posted on February 14th, 2010 in Java

Dynamic Proxy design pattern is 23 a very common one, often look for the development of rights management systems, Spring in the AOP is the dynamic proxy approach, the following will describe Sun' ...

Convolution matrix algorithm, problem-solving thinking problems

Posted on February 14th, 2010 in Java

The subject of a roundabout to require the digital matrix Java code int i = 5; 12345 161,718,196 152,425,207 142,322,218 131,211,109 int i = 6 123,456 20,212,223,247 19,323,334,258 18,313,635,269 173, ...

The first FreeMarker HelloWorld program

Posted on February 14th, 2010 in Java

Work needs, came into contact with FreeMarker, Google for a long time, saw some of 2007's 2008 blog post and feel are more suitable for entry. But the depth is not too few. Of course, now is the y ...

Spring configuration file stored on the location of the problem

Posted on February 14th, 2010 in Java

For the sping applications, has been taking it seriously enough, now. Today, doing a spingMVC example of a time when, web.xml on the spring parameters for the listener configuration throws an exceptio ...

A simple jdbc connection pool implementation

Posted on February 13th, 2010 in Java

import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.Vector; public class DBPool ( private static String userName = "c ...

Hibernate mapping one to one relationship between

Posted on February 13th, 2010 in Java

Using the relationship between man and identity Person class has three attributes IdCard class has three attributes The first case, the primary key association (person class positioning the main table ...

Hibernate-to-many and many-to-relational mapping

Posted on February 13th, 2010 in Java

The use of the relationship between departments and staff Department (Department) has three attributes, set the get and set methods Employees (Employee) also has three attributes, respectively, get an ...

Extended ApacheCommos of DbUtils

Posted on February 13th, 2010 in Java

The DbUtils is a simple ApacheCommos easy to use lightweight tools for database operations, the project's home page is: http://commons.apache.org/dbutils/, information about it can get from there. ...

java of the Class to get a relative path, absolute path method

Posted on February 13th, 2010 in Java

java of the Class to get a relative path, absolute path method

With regard to the use of java exceptions Some Thoughts

Posted on February 13th, 2010 in Java

Has been unusual problems. To write about some of their own views. Many involve a number of commonly used java development framework. spring framework for all of the sql, or Hibernate Exception conver ...

JSP_Servlet_JavaBean Quick Start (2. Servlet explain)

Posted on February 13th, 2010 in Java

Quote: JSP_Servlet_JavaBean Quick Start (1, JavaEE Overview) 1. What is a Servlet? Servlet (Java server applets) using Java server-side program written in is determined by the server-side calls and im ...

Prawn with me to write network (2 days)

Posted on February 13th, 2010 in Java

1, design the user-related entity class Points Rank categories: Knowledge Tip: @ GeneratedValue that is automatically selected from the jpa Identity field generating strategies; @ OneToOne (cascade = ...

java regular expressions to achieve

Posted on February 13th, 2010 in Java

Nepal may be encountered at work need to obtain one or a number of variables inside the http response, this time the role of regular expressions are embodied, and in general work, a lot of use to the ...

Best-fit essence CVSNT Eclipse

Posted on February 13th, 2010 in Java

I think this web site for beginners with cvsnt and the eclipse is the best interpretation: http://www.360doc.com/content/05/0803/22/73_4459.shtml

JBPM4.3 Use

Posted on February 13th, 2010 in Java

JBPM4.3 Use Installation and Integration Directory Structure Download JBPM4.3 Download address: http://sourceforge.net/projects/jbpm/files/a)% 20jBPM% 204 / JBPM4.3 package directory structure as foll ...

spring security system security features to provide

Posted on February 13th, 2010 in Java

1. Overview As the spring security system development in the competence fill up after the closure of the so used only spring security in the provision of part of the content; Complete features include ...

struts1.x File Upload

Posted on February 13th, 2010 in Java

jsp form page (upload.jsp) ActionForm Action xml file configuration

Spring Annotations Learning Letters (6) test

Posted on February 13th, 2010 in Java

Since the system is based on notes self-contained, then the test based on whether it can rely on Spring annotation easy to complete? Resolutely No problem! Spring-Test duty-bound to complete this task ...

[new] Apache Gerrit service delivery

Posted on February 13th, 2010 in Java

In the Apache server installed on Gerrit, a specific site http://git.apache.org:8080/, the current test run, I signed up for what turned out to be 100002, regarded as the first user has, it seems peop ...

struts1.x Dynamic ActionForm

Posted on February 13th, 2010 in Java

jsp page (dynaform.jsp) xml file configuration Action configuration (DynaFormAction)

struts1.x tags

Posted on February 13th, 2010 in Java

1, beanwrite label action in the scope of the request to set the following properties Back to the jsp page to display labels with beanwrite 2, logic tags (logical judgments) Back to jsp page tags to u ...

On how to debug a webapp using maven to create

Posted on February 13th, 2010 in Java

There are many ways to debug webapp can be directly installed server, Can also be installed maven-jetty-plugin, maven-tomcat-plugin plug-ins In addition to these, but also can be directly embedded jet ...

Three-step easy java restful web services

Posted on February 12th, 2010 in Java

restful web services, I believe for most readers no longer a new term, on-line can be found to the information is voluminous, numerous, it will not go into at this myself, only to provide a number of ...

Rookie question: Will these two kinds of loading the configuration file What is the difference?

Posted on February 12th, 2010 in Java

First import java.util.Properties; import com.fendou.order.dao.OrderDao; import com.fendou.order.factory.OrderDaoFactory; import com.fendou.system.util.ProploadUtil; public class OrderService ( privat ...

Nothing to write a file to determine the same java program segment

Posted on February 12th, 2010 in Java

Nothing to write a file to determine the same java program segment

Struts2 in the use of DMI

Posted on February 12th, 2010 in Java

Struts2 in Action class can be placed in multiple methods and struts.xml configured for the page is called. As long as the approach is consistent with execute () method of the standard that the return ...

Forget that is a mistake.

Posted on February 12th, 2010 in Java

If you forget a mistake, I do not want to repeat the mistakes again. Write it down. <mapper resource="com/company/blog/sqlmap/testMapper.xml" /> In the configuration file you forgot to ...

Struts2 tags to obtain the value of requestURI.contextPath

Posted on February 12th, 2010 in Java

Struts2 tags to obtain the value of requestURI.contextPath

NIO to use TLS

Posted on February 12th, 2010 in Java

Recently, some projects will need to get TCP to connect existing systems to upgrade to encrypted TLS connections, but the problems encountered were originally used as a yes SocketChannel link layer su ...

Tomcat multi-port, multi-virtual host configuration

Posted on February 12th, 2010 in Java

Tomcat greater use in the development environment, but sometimes also done production environment. In a production environment will be encountered more needs to be placed in a tomcat multiple sites un ...

The interceptor struts2

Posted on February 12th, 2010 in Java

1. Understand the interceptor 1. Interceptors in the anti-ask certain way, before or after the field to intercept, and the interceptors are pluggable, the interceptor is an implementation of AOP. 2. I ...

JForum source code analysis notes

Posted on February 12th, 2010 in Java

My development environment: JForum2.1.8 tomcat5.X JDK 1.6X Routines can not be refined in order to start. From the beginning web.xml web.xml includes a filter, a listener, and two servlet, not much co ...

EJB study notes, memo!

Posted on February 12th, 2010 in Java

Stateless Bean @ Stateless Stateful Bean @ Stateful EJB injection @ EJB (beanName = "BeanName") Do not write the words, the default for local Distance @ Remote Local @ Local

You look at the difference between StringBuilder and StringBuffer it?

Posted on February 12th, 2010 in Java

You look at the difference between StringBuilder and StringBuffer it? The two string classes, it is estimated there in front of me a couple of years old, but I have been concerned about the difference ...

EXE4J packaged into exe files

Posted on February 12th, 2010 in Java

exe4j a java packaging tools can be packaged into a jar file or exe file, very convenient to download ask Google Bar Described here are labeled by NETBEANS after the packaged jar files into exe Next s ...

JME Translation 1: Hello Series HelloWorld Translation

Posted on February 12th, 2010 in Java

Here, we will learn how to build a foundation for JME procedures, and to explore SimopleGame, Box, and rootNode these keywords, good, let me look at bar-depth learning. Here we show you the basis for ...

Kangaroo-jslet v2.0 Easy Manual and related jar files

Posted on February 11th, 2010 in Java

Kangaroo-jslet v2.0 annex to the simple manual and jar files. Dom4j-1.6.1.jar which is to be supported by Kangaroo framework jar file. Welcome to use Kangaroo-jslet. Kangaroo-jslet v2.0 If you have an ...

Kangaroo-jslet v2.0 of the jar file

Posted on February 11th, 2010 in Java

Accessories for the kangaroo-jslet-2.0.jar and the need for supporting jar file dom4j-1.6.1.jar

The spring has gone again, BUG no more will come back!

Posted on February 11th, 2010 in Java

Evil bug, take a look at all such a stupid Mody: 1. Using the sequence when you use select max (id) from table; ------- too violent, and direct data recorded chaos 2. Multi-layer for the time loop, th ...

Prawn with me to write network (1 day)

Posted on February 11th, 2010 in Java

A first integrated spring2.5 + jpa1.0, scanning plus explanatory notes to speed up the development pace, SessionFactory to create the required a longer time, use the Singleton pattern. Affairs managem ...

Kangaroo-jslet v2.0 Simple Guide

Posted on February 11th, 2010 in Java

Attached Kangaroo-jslet v2.0 simple manual. Kangaroo-jslet then upload the relevant jar files. Welcome to the Kangaroo-jslet v2.0 evaluated with a view to its improvement.

Ant Study Notes

Posted on February 11th, 2010 in Java

Ant Study Notes

java servlet container

Posted on February 11th, 2010 in Java

Used or intend to use the java server has a resin, tomcat, jetty. 1.tomcat is a standard j2ee implementation, the user may also be more. Tomcat, but more and more, updated more and more slowly, recent ...

Java programmer interview questions of 30 traps

Posted on February 11th, 2010 in Java

To find a job interviews, have an interview there are ways to deal with the interview. Following some of the topics from me and my friend's painful interview experience, mention of these issues in ...

where to place log4j.properties

Posted on February 11th, 2010 in Java

Today and the project manager to discuss the next concrete placement log4j.properties, I started in favor of direct placed in the classpath below, so that facilitate management, performance should als ...

Myeclipse Subversion

Posted on February 11th, 2010 in Java

Myeclipse Subversion The basic operation of myeclipse is relatively familiar, but is still in use some things can not all remember that every time when in use the provisional based on what's been ...

[Original] to give up the workflow engine, adaptive structures technology research?

Posted on February 11th, 2010 in Java

Structure to be used adaptive technology engine technology, will inevitably make the process engine code above level one more level, this code-level topology in the flow chart of the core engine, XML ...