A simple login interface was created to add an event response.Import javax.swing.*;Import java.awt.*;Import java.awt.event.*;public class Jtextfielddemo extends JFrame implements actionlistener{JTextField jtf=new JTextField (10);JPasswordField
Multi-State embodiment:
Overloading and overriding of methodsThe polymorphism of the object2. The polymorphism of the object:Transition up: The program will automatically completeParent class Parent Class object = Child class instanceDown
One, Java is a multi-functional high-level language: 1, can be used to develop small programs on the Web page, the application running on the desktop;2, server-side middleware for client server resource communication;3, can also be used for Web
Author: Jakob Jenkov Translator: Li Jing ([email protected])This section provides a brief introduction to InputStreamReader and OutputStreamWriter. The attentive reader may find that in the previous article, the classes in IO either end with a
Author: Jakob Jenkov Translator: Li Jing ([email protected])ReaderOriginal linkReader is the base class for all reader in Java IO. Reader is similar to InputStream, except that reader is based on character rather than byte-based. In other words,
Original link Author: Jakob Jenkov Translator: Li Jing ([email protected])PipedInputStream can read the byte stream data from the pipeline, the code is as follows:
01
InputStream input = newPipedInputStream(pipedOutputStream);
Download Struts2 and struts2
Three methods for configuring struts2 constants:
1. Use the element in struts. xml to configure eg:
2. Configure eg: struts. action. extension = true in the struts. properties file.
3. Configure the
Spring MVC and springmvcCore Principles
1. the user sends a request to the server. Url: user
2. The server receives the request. Dispatchservlet can be processed. Call DispatchServlet.
3. Inside DispatchServlet, use HandleMapping to check whether
SetCharacterEncoding comprehension in encoding, setcharacterencoding
1. pageEncoding = "UTF-8" is used to set the encoding used when JSP is compiled into Servlet.
For data sending, the server will encode the data to be sent according to the
Java json operationI. JSON syntax
JSON: JavaScript Object Notation (JavaScript Object Notation). JSON is the syntax for storing and exchanging text information. Similar to XML, but smaller, faster, and easier to parse than XML.JSON data is written
JavaEE learning records and javaee recordsTCP/IP layer-4 model HTTP protocol
Hypertext Transfer Protocol (text, audio, and video) is a distributed, cooperative, Multimedia Information System Service, application-layer protocol.HTTP Request
Common
"Repeated column in mapping for entity" exception in Hibernate, hibernaterepeated
Turn: http://lijiejava.iteye.com/blog/786535 one-to-many bidirectional Association (class Item and class Bid ):
Item class:
public class Item { private int id;
Spring two things (1), spring
Let's give a brief introduction to spring. On the one hand, let's get started with new users, and on the other hand, let's repeat them.Maven is not used for the first small factory, and maven is used for configuration
PageEncoding and contentType attributes, pageencoding1. Legend Analysis
The figure shows that the two attributes have no relationship.
Setting these two encoding formats does not affect Chinese display.
2. Cause Analysis
PageEncoding
Spring first thing (8), spring
1 5
IStuDAO. java
1 package com.lee.spring012.scan.mvc.annotation;2 3 public interface IStuDAO {4 public void saveStu();5 }
IStuService. java
1 package com.lee.spring012.scan.mvc.annotation;2 3 public interface
Spring two things (10), spring10
First paste the POM content. After all, maven is used for simple construction.
1 2 4.0.0 3 org.springframework.samples 4 maven-spring002-aop 5 0.0.1-SNAPSHOT 6 7 8 9 10 1.711
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service