Operating environment: myeclipse + tomcat6 +. Net web service 1. Download axis2-1.5-bin.zip url: http://ws.apache.org/axis2/download.cgi 2. Download Axis2 and extract to a target directory 3. AXIS2_HO ...
configuration file (RSS)
Hibernate Tools to Ant Task run, mainly in the Build.xml configured. Reads as follows: build.xml contents of two parts: The first part is the Path, is mainly to introduce the required Jar Pack The sec ...
Java in the graphics processing is called a local graphics processing library. In the use of Java for graphics processing (eg: Photo zoom, image signatures, generate reports), if running on windows wi ...
The above is part of the struts.xml the contents of the configuration file. The above is an action, log on after a successful redirection using. Questions to, and I want to take ipaddr value main.jsp ...
The first step: in the class path following the establishment of a META-INF folder, and note that this name must not be arbitrarily changed, and then the establishment of a persistence.xml file, confi ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Look netbeans on maven wizard, you can know netbeans attaches great importance to maven. It is a snapshot version of the built-in maven3. Therefore, netbeans recommended to download the version requir ...
Note the use of spring, this example from the Web, I do not know what the original was. . 1. Defining the Interface 2. The first implementation class The second implementation class 3. Configuration f ...
In the Tomcat and application of the stress test, if the performance of your application, not satisfied with the results, you can take some performance tuning measures, and of course the premise is th ...
Three months to write a C / C + + finally returned to the Java I love the ~ ~ originally wanted to continue to study the JSP ^ ^ But a friend recently asked me to help him make a final examination of ...
Xmlbean generated using jar found this article in turn as a record of their own learning. When our preliminary understanding of XSD, we have been able to create the XML BEAN. To create XML BEAN, need ...
1. DWR is very easy to use, the first of its official website (www.directwebremoting.org) Download dwr.jar, the latest version of the current is 3.rc1 2. Dwr.jar to download on the project WEB-INF \ l ...
getHiberanteTemplate, getCurrentSession and OpenSession The use of getCurrentSession () to create the Session will be bound to the current thread to the use of OpenSession () is not. The use of getCur ...
Principle: 1. Read and analytic profile 2. Read and analytical mapping information, create a SessionFactory 3. Open Sesssion 4. Transation create Affairs 5. Persistent operating 6. Submit 7,. Close Se ...
I encountered the problem as follows: Executive: . / cruise build test_cc_01 Time, there will be the following error? SVN is literally no permissions to connect, but I tried a lot of SVN, but I have p ...
Principle: 1. Read and analytic profile 2. Read and analytical mapping information, the creation of SessionFactory 3. Open Sesssion 4. Transation create Affairs 5. Persistence operation 6. Submit 7. C ...
FCKeditor is a specialized use of the website are open source WYSIWYG text editor. Chi in the light of its need for the installation steps too complicated to use. It can and PHP, JavaScript, ASP, ASP. ...
Carousel picture to achieve the way there are many, have a direct HTML, with the JS, as well as the FLASH. FLASH I prefer because it is better to achieve the function of packaging, only in the interfa ...
In some projects may need to use properties instead of database-related hibernate.cfg.xml configuration management can be simplified to facilitate the maintenance of properties or for dynamic loading. ...
http://blog.csdn.net/guosydragon/archive/2007/04/15/1565742.aspx recently learned here, a little gain, try out their own, out to show one's inadequacy, but there is help for beginners, after all, ...
hibernate.cache.provider_class = org.hibernate.cache.EhCacheProvider hibernate.cache.provider_configuration_file_resource_path = / ehcache-hibernate.xml hibernate.cache.use_query_cache = false hiberna ...
Heard of the development phase to test the use of more convenient jetty today to learn the next jetty. Tomcat with a way similar to the deployment of a document is to direct Kaodao $ (jetty_home) / we ...
Hibernate Object - Relational Mapping A, hibernate Principle 1, operations in hibernate entity object persistent to the database when there are three states, the instantaneous state. Persistent state, ...
In the Hibernate configuration file to add the following code: <property name="hibernate.query.factory_class"> org.hibernate.hql.classic.ClassicQueryTranslatorFactory </ property> ...
hibernate call stored procedure mysql5.0 key code: Database stored procedure Create procedure SP_get_UserInfo () as begin select * from user order by Id end corresponding to the hibernate configuratio ...
The first item hibernate 1, a new java project 2, create a User Library, by adding the following jar * HIBERNATE_HOME/hibernate3.jar * HIBERNATE_HOME / lib / *. jar * MySql jdbc driver 3, create a hib ...
Understanding of JNDI in the java: comp / env / jdbc / datasource and jdbc / datasource difference. In describing the JNDI, for example, when access to data sources, JNDI address two ways for writing, ...
In the hibernate configuration file, and some elements have a unique configuration of attributes, but I often see the abuse of the elements, especially those automatically generated hbm file tools oft ...
This afternoon before work, the refund process transformation project, the developers feel that the future of existing local processes are unreasonable: in the refund and return the case and refused t ...
Long time no jar packing, packing orders and now have forgotten the ... ... Re-search with google a bit: Packing the root directory of the following documents: ---------------------------------------- ...
On lazy (lazy) and forced to load (Hibernate.initialize (Object proxy)), etc. Sustained in the use of hibernate when it is sometimes necessary to change the dynamic loading of objects, such as in the ...
The company now launched a new project to build using maven, and then continued hudson integration, the development phase to use as a jetty application server, database MySQL ... Spring projects, as w ...
Has been ruby on rails Have a lot of interest, would like to see a lot of people this was commendable, but I have been working on the development under the windows, for ruby on rails Structures or the ...
try ( Context ctx = (Context) new InitialContext (). Lookup ( "java: comp / env"); ds = (DataSource) ctx.lookup ( "jdbc / test"); conn = this.getConn (); ) catch (Exception e) ( Sy ...
Object-relational mapping is an XML document to illustrate the. Document mapping tools can be used to generate, such as XDoclet, Middlegen and so on AndroMDA. The following example from the beginning ...
Spring control of Hibernate as a result of the life cycle of only data layer and service layer, while the performance of management layers, so there will be the owning Session was closed phenomenon. N ...
http://skywen.javaeye.com/blog/306302 SSH integration error to be summarized as follows 1. The error appears as follows Error creating bean with name 'sessionFactory' defined in ServletContext ...
This configuration file can be configured not <property name="hibernate.show_sql"> true </ property>, suitable for the development of the use of # # # Format #-X No.: X informati ...
MyEclipse6.5 automatic integration with Hibernate, if the table named t_card 1. The next map "Finish" will be generated com.demo.dao and TCard.java TCard.hbm.xml three documents TCardDAO.jav ...
Authorized recently wrote a page, use dwr to handle, easy feeling. dwr configuration as follows: web.xml page: dwr.xml page spring configuration file jsp page: In the whole process more interesting is ...
1 Locations for Initialization CodeRails offers (at least) five good spots to place initialization code: Rails provides (at least) five places to put initialization code Preinitializers environment.rb ...
There are only four Myeclipse5.5 template xml 1, Default XML template, 2, XML template for a web.xml, 3, XML template for a web.xml file with Struts, 4, XML template for a struts-config.xml If we want ...
In the DAO class, we have inherited from Spring's DAO, the code is as follows: wrote jdbcDaoSupport import java.util.List; import org.springframework.jdbc.core.support.JdbcDaoSupport; import com.s ...
Secure Access database is very important thing. Build a web application if the application needs access to the database or, if the database user name and password directly on the hibernate configurati ...
No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here spring + hibernate insert data, the above error occurred. Solution: join the transaction p ...







