Java


Advertisements


Lack of a finishing tool for daily read data

Recently busy with work, overtime is still unable to 100% of the quality and quantity, the pace of work stress, but also a small business design work, have to learn to set accounting knowledge, concepts, tools, ideas, making the work often requires a

Java Cryptography (f)

Next, we introduce DSA digital signature, asymmetric encryption alternative implementation. DSA DSA-Digital Signature Algorithm is the Schnorr and ElGamal signature algorithm variants, by the U.S. NIST as DSS (DigitalSignature Standard). Simply put,

A simple example and a number of bean file

package com.liyixing.spring.service; import com.liyixing.spring.model.Account; public interface IAccount { / / Delete user public void deleteAccount (Account account); } Defined to achieve package com.liyixing.spring.service.imp; import com.liyixing.sprin

Java Cryptography (d)

Next, we introduce the typical non-symmetric encryption algorithm - RSA RSA This algorithm appeared in 1978, it was the first not only for data encryption can also be used for digital signature algorithm. It is easy to understand and operate, and very pop

Spring in the automatic assembly

Spring in the automatic assembly <br /> the form of automatic assembly byType, byName, no, construtor, autodetect and the default (beans tag did not, and bean tag are the property), a total of 6 kinds of assembly methods. byType: in the contain

AOP annotations in automatic assembly notice

AOP annotations in automatic assembly notice First, create an annotated class: Note: aop introduction package cn.csdn.util; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.After; import org.aspectj.lang.annotation.AfterThrowing;

About Observer & Observable

In the literal sense: Observer observer, Observable observable. Of course, the viewer can observe the object of observation. At first glance, this observation is not that hard, with the general statement that can be achieved if this function, but in

Thrift vs. Protocol Buffers

http://floatingsun.net/articles/thrift-vs-protocol-buffers/

BeanFactory and AppliationcContext

BeanFactory just a bean definition and maintenance of the interdependence of advanced plant interface. We can access the bean through the BeanFactory definition. Resource res = new FileSystemResource ("beans.xml"); BeanFactory factory = new

tags and custom Jackson's ObjectMapper

Will <mvc:annotation-driven /> Replace the following <bean> <property name="order" value="0"/> </bean> <bean> <property name="webBindingInitializer"> <bean> <property name="validator" ref="validator"/>

Hibernate in the cascade

cascade between the two objects refer to the linkage between the operation of an object operation, the specified cascading objects also need to do the same Values ​​can be: all, none, save-update, delete all: all cases perform cascading operation non

bean definitions, map, list, set, pros, arrays, and the combined set

1.id, name bean naming bean naming conventions bean naming a standard Java naming conventions, that is, lowercase letter, capitalize the first letter of the interval named. If accountManager, accountService, userDao and loginController, and so on. Of bean

[Your] country by most of the USBKey B / S mode (CAPICOM) generate a digital signature of serious security vulnerabilities

Many people prefer to use a digital signature generated UsbKey be submitted to the server, I recently did a project several ministries and agencies were the case, provided by USBKey ActiveX plug-in (more often CAPICOM interface) provided by the manuf

time to solve garbage problem tomcat

JSP environment in the encoding process of the garbage problem occurs mainly in tomat server and MYSQl database. If the web development process, garbled, the main solution to yo yo about categories: A 1. In the tomcat default encoding is ISO-8859-1,

ResourceBundle file extension resource bundle to achieve xml.java

ResourceBundle class is useful, but can only handle specific file types: property Therefore, we can extend the definition of ResourceBundle class to handle their own file types and file formats. Help in the JDK1.6 documentation gives a simple example, her

Crazy Programmer Homework One: Apache Xalan Studying

Crazy Programmer Homework will be released as a series what i had planed, today i will pull the first term: Crazy Programmer Homework One, and the Two, Three ... will coming sooner Today's Topic is Apache Xalan, i do not spend a lot of time to di

struts2 get in the way of enumeration in the text.

defined in java public enum PaymentConfigEnum {zfb, cft}; struts2 on the page directly through the enumeration value, whichever is the Chinese name. $ {Action.getText ("PaymentConfigEnum." + Type)} Chinese name configured in the configurati

[Transfer] String, StringBuffer or StringBuilder

Is a String, StringBuffer or StringBuilder? I believe everyone on the difference between String and StringBuffer has also been very understanding, but the estimates still have a lot of comrades working principle of these two classes some doubts, I

java thread communication

When it comes to thread communication we think of producers and consumers, the dining philosophers problem, the following example is based on producers and consumers to realize the communication between threads package com.lamp.test; public class Cak

Java Cryptography (V)

Then we analyze the DH encryption algorithms, a consensus agreement appropriate based on key encryption algorithm. DH Diffie-Hellman algorithm (DH method), key agreement protocol. Public key cryptography by Diffie and Hellman founder of an idea put forwar

eclipse Optimization

-Framework plugins \ org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar -Vmargs -Dosgi.requiredJavaVersion = 1.5 -Xms512M -Xmx512M -Xmn128M -XX: PermSize = 128M -XX: MaxPermSize = 128M -XX: + DisableExplicitGC #-Djava.net.preferIPv4Stack = true

Integrated struts2 spring hibernate, using annotations

Integrated struts2 spring hibernate, using annotations 2009-04-24 10:43 Integrate struts, spring, hibernate, the biggest problem for beginners on its cumbersome xml configuration file. Now all of which are annotation-based configuration provides good supp

Some commonly used software development, regular updates!

http://u.115.com/file/e6cgug8x # Download myeclipse-8.5.0-win32.exe http://u.115.com/file/aqpo28hw # Download API + manual. Zip http://u.115.com/file/bh1tz8va # Download FlashBuilder_4_LS10.exe http://u.115.com/file/e6cg07mq # Download MyEclipse8 [1]

java jvm parameters-Xms-Xmx-Xmn-Xss tuning Summary

java jvm parameters-Xms-Xmx-Xmn-Xss tuning Summary Common Configuration Example <br /> heap size setting JVM maximum heap size in the three limitations: the data model related to the operating system (32-bt or 64-bit) limits; system of free virtual

hibernate get methods / load method

get Load object is persistent objects Performing get can immediately issue a query statement get Method to load the data, if there is no return null load() Method is not immediately issue a query statement because load Support lazy( Delay-load/lazy l

Web.xml on the issue can not be identified can not be identified on the eclips problem

Web.xml <taglib> on the issue can not be identified can not be identified on the eclips problem <taglib> org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files d

conceptual issues in java

1.java operating mechanism threads each thread has a program counter and the method call stack. (1) counter point to the way area next instruction to be executed. (2) method call stack, call tracking the process of running threads. Each time a method

spring annotation (to)

spring annotation Keywords: spring Spring JSR-250 annotations Note configuration relative to the XML configuration has many advantages: It can take full advantage of Java's reflection mechanism to get the class structure information, which can reduce

Could not find worker with name 'xxxx' in uri map post processing

A few days ago an article in the terms of use ITEYE called: Apache + Tomcat cluster configuration of the article (http://www.iteye.com/topic/1017961), a breakdown of strict accordance with the above configuration, the results can not be tested last v

Sevlet / JSP one of the

2011-05-08 Containers: contains other objects, control object life cycle (web container, java the collection containers, EJB containers, etc.) loadOnStartup greater than 0 for severlet is initialized during the startup process, the smaller the number

Struts2 spring integration on the problems encountered

This is my configuration file struts2 <? Xml version = "1.0" encoding = "UTF-8"?> <! DOCTYPE struts PUBLIC "- / / Apache Software Foundation / / DTD Struts Configuration 2.1.7 / / EN" "Http://struts.apache.

Large, high concurrent high-load web applications architecture - cache architecture strategy

The structure of the current composition of the site to cache commonly used to provide the performance of WEB applications, due to the size of the different sites, there were the following types of cache architecture. (1) single cache (2) simple distribut

servlet development of one of the series: basic concepts and life cycle

is written in Java servlet running on the Web server class. A Jsp corresponds to a servlet. *. Jsp files to the server, the server first be translated into a servlet file, that is. Java file, and then be compiled into a. Class files, and then interpr

[Collection] MySQL's extension --- HandlerSocket plug NoSQL

MySQL plug-ins, NoSQL extension --- HandlerSocket One. HandlerSocket Description: November 2010 social game development company in Japan released a MySQL HandlerSocket DeNA plug-in. Handlersocket plug-in is developed by the Japanese Yoshinori Matsunobu. T

Automatic assembly (autowire) collaborators

Spring IoC container can be automatically assembled (autowire) collaborative relationship between the bean. Therefore, if possible, can automatically let Spring BeanFactory by checking the contents of the specified bean to back our collaborators (other be

To design the table with a java class

Java class to design the table according to When a project first need to model the data / / Many-to-staff - department drop table if exists employee; / / Build table create table department ( id int primary key auto_increment, name varchar (20) ); cr

Stack, stack, heap and stack the difference (to)

Does not prevent read this article: http://www.cppblog.com/oosky/archive/2006/01/21/2958.html

Hibernate Mysql automatic increase of the column annotation

@ Entity @ Table (name = "T_POWER") public class Power extends BaseEntity <Power, Long> { / / Permission ID @ Id @ GeneratedValue (strategy = GenerationType.IDENTITY) @ GenericGenerator (name = "persistenceGenerator", strate

JAVA What does it mean in the volatile keyword

Volatile member variables modified by the thread of each visit, are forced to re-read from the shared memory of the member variable. Moreover, when member variables change, forcing changes in the value back to the thread will write shared memory. So

J-Hi affect the release pattern in the end what information

J-Hi platform taking into account the development time and after the release of information, security, efficiency and other aspects of requirements are different, thus providing a development model and release mode setting switch. This switch configu

Spring loaded resource or configuration files

Spring IoC container can be configured in various ways to load metadata, such as the local file system, Java CLASSPATH and so on. WEB applications in ApplicationContext instantiation Usually with the BeanFactory is created programmatically is differe

spring DI HelloWorld

spring HelloWorld

three states of objects in hibernate

public class SessionTest extends TestCase { public void testSave1() { Session session = null; Transaction tx = null; try { session = HibernateUtils.getSession(); tx = session.beginTransaction(); // Temporary status User user = new User(); user.setNam

Data Structure Visualizations

. Data Structure Visualizations http://www.cs.usfca.edu/ ~ galles / visualization / Algorithms.html Translation described in part: http://coolshell.cn/articles/4671.html .

Spring + Hibernate additions and deletions to investigate two methods to achieve

Spring + Hibernate additions and deletions to investigate two methods to achieve First, define a Customer of the bean class, set Customer.hbm.xml file. Then defined a Dao interface. Ready for a jdbc.properties file. The first method: Define a class in the

Reading Properties file Properties file and to write the content inside the

Read the configuration file is a very common operation; Read the file is simple: public static String getProperty(String key) { String value = ""; // The first step is to get a Properties object Properties props = new Properties(); // The second step

java internal classes

1. Inner class (Inner Class), within the class is divided into 4. 2. Static inner class (static inner class): the external class can access only static variables and static methods to generate static inner class object of the ways: OuterClass.InnerCl

Unable to instantiate Action, defined for',,,' in namespace

struts2 principle is the implementation of the request when a request came after the interceptor struts2 configuration files based on their analysis and then initialize and perform different java classes, and the reason why the problem occurs is because t

Eclipse development environment to configure Java EE

Download and install JDK 1.1 Download and install Tomcat 1.2 Modify tomcat 6's Web service port number is in the tomcat 6 conf subdirectory under the installation directory to find server.xml configuration <Connector port="8080" prot

The engine is simple to use Drools drl

package benx; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.drools.RuleBase; import org.drools.RuleBaseFactory; import org.droo
Recent
Recent Entries
Tag Cloud
Random Entries