that I not only with the old man guerrilla, sometimes sleep in the computer City Square bench, in the morning to look at the first sight is security and his side to me overlooking the unequaled wolf Dog.
After understanding the ASP and the website, began to consider to learn more things, at this time I have given up my dream of writing a game program, because I do not know how to pursue this dream. I also gave up my more good SCM development (now should be called embedded). I turned to
Language="Java"pageencoding="Utf-8"%>2 DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd ">3 HTML>4 Head>5 Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">6 title>Insert Title heretitle>7 Head>8 Body>9 Hello, this is the first SPRINGMVC program! Ten Bo
System integration
Weak. Minimal need to integrate with other systems
7
User interaction
Weak. The interaction is not many, the expression way is simple, more is the data deletion and modification to investigate.
8
Development process
Emphasis on agile, rapid development, and basically do not need version control.
By simple comparison, it is obvious that Internet development empha
() {while (true) {synchronized (obj) {if (tickets
19, multi-threaded (railway station ticket sales example with the implementation of the Runnable interface)20. Multi-threaded (deadlock)
If synchronization code is nested and the same lock is used, the deadlock may occur
Try not to nest using private static String S1 = "Chopsticks Child Left ";p rivate static String s2 =" chopstick right ";p ublic static void Main (string[] args) {new Thread () {public
.
E: Case Demo
An anonymous inner class as required
14. Object-Oriented (anonymous inner class overrides multiple method calls)
A: Case Demo
Method invocation for Anonymous inner class
15, Object-oriented (anonymous internal class in the development of the application)
A: The code is as follows
//这里写抽象类,接口都行abstract class Person { public abstract void show();}class PersonDemo { public void method(Person p) {
to call an empty method because the class object is created.
The goal is to simplify the programmer's operation, to define the listener to inherit the adapter, only to rewrite the required methods.
20, GUI (need to know)
Event handling
Event: An action for the user
Event Source: The component being manipulated
Listener: An object of a custom class, implements the listener interface, contains the event handler, adds the listener to the event sourc
Category: java ee2015-07-09 16:35 29 people read Comments (0) favorites edit Delete Post Chinese garbled solution methodSet when data is acceptedRequest.setcharacterencoding ("Utf-8");//The encoding must be consistent with the page encodingPage SetupGet Chinese garbledModify Tomcat Server.xmlAdd uriencoding= "utf-8" setting encodingInstance:The Servlet backgr
@ Page Language="Java"ContentType="text/html; Charset=utf-8"pageencoding="UTF-8"%> DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd ">HTML>Head>Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">title>Insert Title heretitle>Head>Body>inta=1; for(intb=1
get.
set.add ("localhost");
Set.add ("192.132.32.4");
Set.add ("127.0.0.1");
}
Cancel Automatic Logon
When automatically login is considered unsafe, so we set no automatic login
As we know before, automatic login depends on the technology stored in the cookie, so here we just need to delete the cookie.
Because canceling automatic logons is a hyperlink, it is written in a servlet.
Code present:
public void DoPost (HttpServletRequest req, HttpServletResponse resp)
throws S
, nosuchmethodexception {person p=new person ("Xiao Qiang",new Date ()); " Name ")); " Age ")); Date ")); (5) Use Beanutils to encapsulate the acquired value into the JavaBean at once.//method of filling all values once with Benutils@Test Public voidSetvalueall ()throwsException, invocationtargetexception {person P=NewPerson (); MapNewHashmap(); Map.put ("Name", "Xiao Qiang"); Map.put ("Age", "24"); Map.put ("Date",NewDate ()); Beanutils.populat
need to create an intermediate table that stores the primary key ID of two tables respectively)Key indicates the corresponding column,The Userdetails attribute is in the role class(4) Also many to many, with the same(5) The Department is self-related, the superior department is many to one, the subordinate department is a pair of many(6) Permissions are self-correlating, same as aboveThree: test, create a table when creating a sessionfactory, write a junit test execution(1) The Discovery table
MAVEN installation directory, for example here the author's installation directory is X:\jee\maven-3.2.9. Note: after maven has been added to the list, don't forget to tick to enable. Then, we are Maven Configuration Interface, set user SettingsGlobal Settings Select settings.xml under the Conf folder in the Maven installation directory , where my maven installation directory is x:\ Maven-3.2.9\conf\settings.xml, select your Maven installation directory and check the Local Repository entry if i
Why are some java EE/J2EE projects inefficient or at least inefficient) English original post address: http://www.adam-bien.com/roller/abien/entry/why_some_of_the_java
1. Architects are far more proficient in PowerPoint than the popular Java IDE.2. Simply deploy the basic environment (such as applications)ProgramServers and databases). Several DVDs and severa
protected void doget (HttpServletRequest request, HttpServletResponse response) throws Servletexception, IOException {//TODO auto-generated Method Stub //Set server side to output UTF-8 encoding response.setcharacterencoding ("UTF-8 "); //Set the browser to receive UTF-8 encoding to solve the Chinese garbled problem Response.setcontenttype ("Text/html;charset=
) , Labels Bean can include properties such as the following:watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvdtaxmduxntc2mq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center "width=" 550 "height=" 480 ">2. Context namespace1), Context tags:watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvdtaxmduxntc2mq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center "width=" 531 "height=" >. Suppose you don't want to configure the bean in an XML file. The ability to a
field is null, then the hashcode value is 0.(7) In the case of arrays, each element needs to be treated as a separate domain. The Java.util.Arrays.hashCode method contains 8 basic types of arrays and hashcode computations of reference arrays, as in the previous algorithm.C, finally, the hash code of each domain is merged into the object's hashing code.This is illustrated by an example below. In this example, the person class overrides the Equals () m
What is the use of JSON data flow in Java EE?
1 JSP pass value to action
2 action in the processing of the value of the JSP, after processing, processed into a JSON-formatted value
3 returns the JSP. The data that is processed in the JSP can be obtained by the. Gets the value in the form of a key value pair.
JSP
$ (' select[name=classes '). Change (function () {var classnum= $ (' select[name=classes opti
JEECG-P3 1.0 Released! JEECG-P3 1.0 is a Java EE plugin development framework. Features: The business components are available in a jar, plug-in mode, loose coupling, pluggable, support for standalone deployment , and seamless integration into the JEECG platform. "Schema description" 1. Jeecg-p3 using SPRINGMVC + Minidao + Velocity +bootstrap+ Maven (build) Framework Technology2. Plugin Introduction method
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.