Java EE Learning routeFirst, the Java Foundation1. Initial knowledge of JavaMemoryDatavariables2. Structure Statements1) ConditionsifSwitch2) Cycle for while3) Statement BreakContinue3. Arrays4. Nesting loops5. Final MissionPerpetual calendar2048 Small Games Second, object-oriented 1. Classes and Objects2. Methods3.String ()DateCaldenarMath4. Object-oriented fea
j2ee| Process 1. First to http://java.sun.com/j2ee/1.4/download.html download Java EE SDK 1.4 installation files
2. Then to http://www.caucho.com/download/index.xtp download Resin 2.1.16
3. Install the JDK to the computer! Follow the prompts to the next step can be successfully installed.
4. Extract Resin compression package to just install the Java
+ */ surveytoken.unbind (); the return(surveyid%2) ==0? " Even ":" Odd ";//Returns the even string if it is an even number, or odd string if it is an odd number * } $SYSTEM.OUT.PRINTLN ("Survey object is empty");Panax Notoginseng return NULL; - } the +}The policy of the routed data source is determined in the overridden method: If the survey ID is even, it is saved to the answer table in the main library Lsn_surveypark, and if it is odd, it is
configured Java language post-compilation sound field
The most basic storage unit for a computer is: bytesComputer direct recognition of binary: binary
What is the difference between a variable and a constant:The value of a variable during the operation is varied, can be assigned multiple times, and the constant is fixed.
Categories of variable data types:Variables need to be defined first, then assigned, and then usedBasic Data type: 4 Class
Xml:Is the most basic configuration file of the Java EE Project, the portal of the server loading project,Of course, 3.0. You can also configure a series of parameters that your project requires in your code.Web. XML exists in Tomcat conf, and the configuration in the project inherits and overrides the file's configuration. Basic configuration:1. Welcome File Settings: This is the default configuration of
function of the byte stream,, because the printwriter inside can carry on the flow socket, therefore does not have to write one oneself writes the class Myout extends Servletoutputstream {bytearrayoutputstream bout ;p ublic myout (Bytearrayoutputstream bout) {this.bout=bout;} @Overridepublic void Write (int b) throws IOException {bout.write (b);//need to write to memory stream}}In the Serlvet of hyperlinks we used a test casepublic void DoPost (HttpServletRequest request, httpservletresponse re
: Suppose that a newborn bunny can grow into a big rabbit in one months, and a couple of rabbits in one months, and a couple of bunnies every month, and no death in a year,
Q: How many pairs of rabbits do they breed in a year, a pair of newborn rabbits?
1 1 2 3 5 8 13
The first month a pair of bunnies 1
The second month a pair of big rabbits 1
The third month a pair of big rabbits gave birth to a small rabbit 2
The fourth month
}web-inf/logs/error.log log4j.appender.e.file.maxfilesize=500kblog4j.aPpender. E.append = true## Only output logs above the error level!!! Log4j.appender.e.threshold = Errorlog4j.appender.e.layout = Org.apache.log4j.patternlayoutlog4j.appender.e.layout.conversionpattern =%-d{yyyy-mm-dd HH:mm:ss} [%t:%r]-[%p]%m %nlog4j.appender.e.encoding=utf-8Configure the Info-level output to the console, and debug and error are output to the corresponding file. 4. Using the Log ObjectImport Org.slf4j.logger;im
, "127.0.0.1");//The 8889 here is the port number of the listener, which can be configured according to your needs, and be careful not to conflict with the port number used by some local applications. 3. Using Tomcat server to get data in Java EE//sample background, according to the class, to obtain students ' informationString classid = Request.getparameter ("ClassID"); Jsonarray Jsonarray=NewJsonar
the Java class in the XML file;Environments: Used to configure data source information, including connection pooling, transaction properties, etc.;Mappers: All the SQL mapping files used in the program are listed here, these mapping SQL are mybatis managed;7. Data sourceData sources are a common means of improving database connection performance, and the data source is responsible for maintaining a pool of data connections that, when the program crea
RequestHandler returns between Response.client and server after processing is complete Communication: There are many communication protocols and technologies, such as Web SERVICE,EJB,JMS, where single Java NIO-based sockets are used, because of their asynchrony and high concurrency. The two basic criteria for using sockets are: 1. The number of threads on the server can be controlled, and the number of requests should not be linearly increased by 2
arrives at the servletCheck the httpservletrequest as needed, or modify the HttpServletRequest header and dataIntercept HttpServletResponse before HttpServletResponse arrives at the clientCheck the HttpServletResponse as needed, or modify the HttpServletResponse header and dataThere are several types of filter:User-Authorized Filter:filter is responsible for checking the user request, filtering the user's illegal request according to the requestLog filter: Verbose logging of certain special use
month, the price should be in what paragraph. Suddenly its price is very low, the system thinks this time is more suitable for purchase. Is the price very low when must buy? You'll have to watch your inventory. The same is true for sales, and we've already estimated that this product will have a big gain by September, and it's going to have a big gain by September. This year also should have, even if it is not up to the highest, according to the year, the first annual increase of 2%, the second
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.