the checked anomaly should be used as a standard use.
Even Bruce Eckel, author of the famous "Thinking in Java", has changed his mind. Bruce Eckel even advocated the use of unchecked anomalies as standard. and published articles to test whether checked exceptions should be removed from Java. Bruce Eckel: "When it comes to a small amount of code, the checked exception is undoubtedly a very elegant idea and
Reahat5.5 install jdk and tomcat and deploy Java projects. reahat5.5jdk1. Download and install Redhat5.5 64-bit Enterprise Edition on the jdk virtual machine,
Take jdk-7u75-linux-x64.tar.gz as an example.
Download jdk of this version from the Internet, or click here to download (access password 375a)
Upload the file to linux as a root user and grant it the execution permission.
# mkdir /usr/
MyEclipse CI as a popular javaide development tool, it has a lot of useful features for our development to provide help. But when we have a lot of projects in our workspace, it's a headache to manage.But we don't want to change the working range, so we need a more effective approach to project management.1. Open myeclipse, you can see the small triangle symbol shown, click Open.2. The popup interface, there is a select Working Set option. Click on Sel
Essay background: In a lot of times, many of the early friends will ask me: I am from other languages transferred to the development of the program, there are some basic information to learn from us, your frame feel too big, I hope to have a gradual tutorial or video to learn just fine. For learning difficulties do not know how to improve themselves can be added: 1225462853 to communicate to get help, access to learning materials.cp2044-in-depth Java
Project Structure:
A project consists of one web project and multiple Java projects. A web project must reference classes and jar packages of other Java projects. During Development with eclipse3.5 and tomcat debugging, the referenced Java project class and jar package cann
each Java application Server has a lot of configuration items. Here is a brief introduction to some of the most common performance optimization configuration projects.
Many application servers have operating system configuration items or non-standard features related to the Java EE specification, which can improve system performance. It should be time to unders
framework for the core business areas.
Since many enterprise applications are based on Java technology for the development of Web applications, the following is mainly based on java-based open source projects, tools and applications.
1. Open Source Tools and XP
XP's 12 best practices, for all enterprise application developers, due to organizational and cultur
repository
Developer B works on a per cent, renamed FOO.C to BIX.C and submits it to the repository
Merging the backbone of developer A to the branch working copy of developer B causes tree conflicts:
The bix.c is marked as a normal (unmodified) state.
BAR.C is marked for addition (including its history).
FOO.C is marked as missing and has a tree conflict.
To resolve this conflict, developer B must first identify the conflicting file foo.c the new file name in the
Paths in Java Web projects, with relative and absolute pathsWhat is a relative path? A simple exampleWe have Project test post address http://localhost:8080/test/Page qiantai/login.jsp page link The final address of the relative addressing link of the JSP page is http://localhost:8080/Test/qiantai/index.jspA relative path is a process that first takes the path to
Self-Reading summary: The configuration of "classpath:" equivalent to the output directory, that is, the compiled class file directory, and "file:" is the startup directory, 14 on the server is the Web-inf directory, the local project is the project root directory. About classpath paths in Java projects in detail: Java 2013-03-14 10:52 6845 people read reviews (1
PrefaceSome time ago, the team in the framework of the STRUTS2 switch to SPRINGMVC, to do a system system, while some common components extracted, independent, team members proposed to use the Logback log, because the previous basic components used by the log4j, the logback are not familiar with, So I learned a little logback, learning process, found the right Chinese information is less, combined with their own projects, share the Logback in the proj
The importance of the HTTP protocol I don't need to say much, httpclient. Compared to the traditional JDK urlconnection, it adds ease of use and flexibility (specifically, we'll discuss later), not only is it easier for clients to send HTTP requests, It also facilitates the developer testing interface (based on HTTP protocol), which improves the efficiency of the development and facilitates the robustness of the code. Therefore, the mastery of httpclient is very important compulsory content, Mas
The directory structure of the general web system is as follows, where the package structure under SRC and the folders under Webroot (except Meta-inf and Web-inf) can be actually adjusted according to their own projects, but the large directory structure of the Java EE specification will not change:Meta-inf: Exactly what to do withMeta-inf, to put it bluntly, is to store some meta-information related files
Unified UTC Time scheme for Java projectsGods_ giant AntIntroductionThe recent team's individual projects after the framework upgrade, some time value has a 8-hour error, because of the wrong time data in the database to understand the UTC time (the old version is considered to be Beijing time)Considering the consistency of the future project for time understanding, I decided to unify the project to use UTC
Recently, the project has been done for half a year to the final Test ready to go, after the flow of the process to start doing some performance testing, during this time to do a lot of performance optimization work, in this take notes, share. Exchange, hope that the same people have something new welcome to add. Do not do too much in this particular operation, mainly from the idea of starting.
Performance optimization is mainly from several aspects.
1. From the perspective of architectural desi
Com.spring.bean.Java classes that need to be created:Hero. javaProperty:Private String Heroname;Priate String type;Private String description;Generate the corresponding get, set method, and then rewrite the ToString method to your liking.Create a new source folder etc, specifically for storing configuration files. Write the XML file--heropool.xml of the hero pool.In the configuration to add a hero's specific information: Luban seventh, Archer, hehe, successfully detected the opposite IQ, it see
Use Intent to transfer Java objects between activities in Android projects -- Implement Parcelable InterfaceUsing Intent to implement Java object transfer between activities in Android projects, there are two ways: one is the passed object implements the Serializable interface; the other is the passed object implements
Several methods and examples for connecting to databases in Java projects1. The most primitive writing method (also for Beginners)First import the database to connect to the basic class, and then the other is simple. In actual operation, you only need to load the driver class and then call the SQL statement. The following is a simple program example.// Select. ja
the sql+mybatis logic tag.Logical label Understanding how people have used the template language freemarer or velocity should be easy to understand, that is, custom rules tagsHibernate is a bit more advanced, and it's simple, he uses annotations or configurations to configure entity and table fields in a way that dynamically generates SQL at startupYou can look at the open source project Minidao, you will know that the persistence layer originally wr
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.