Weekly fourth week of summer vacation

This is a week almost every day watching web video actually found very own school system, there are a lot of things for me, both familiar and unfamiliar. Familiar because I used it, it is strange because I do not know how it is, just know to use it.

I also found out that I had always been hooligan to do web projects, as long as the functions implemented on the line, is not standardized. Take the simple database connections, real people do the project is to do with the connection pool, but I did when directly connected to the database on the line.

The method used is to take data from the database, I use the original special, but normally do the project should DBUtils.

tomcat configuration is, I always thought tomcat stuff just released a project only. But after learning only to find that in fact the equivalent of a server. As long as you publish your project on tomcat, in all the computers in your LAN IP address of the computer you can access your projects published through.

In order to achieve a similar server. I always thought previously posted on their computers can only access their own people is not accessible. In addition to that some information about the configuration of tomcat, you can access some configuration when the project without any increase in 8080 direct access.

XML writing, constraints, and so resolved. I have been using the previous version 3.0 with version 2.5 is not, I have to configure the access path directly in the Servlet there, so they feel no use XML. Until these days only know how to use XML particularly large, regardless of maintenance from the code or from the XML code security for configuration it is of particular importance.

Servlet can be said to re-learn it again, before I do not understand how servlet is one thing, to know how to use. Rewrite service () function, allowing them to choose different ways to respond to the user, but there has been not understand why the service () function can choose to call the method. Until recently to learn to understand Servlet init (), service (), destory (), doget (), dopost () method which is how it goes.

ServletContext global variable is stored or web project, obtain an absolute file path. Understand the original cookie, session, request and ServletContext is the domain come.

As well as some knowledge of response response, particularly deep memory is that it realized that the case file download function, can really say that I really started to learn web development projects.

I look at this week is a brief note to learn is mainly used to record the memories of a week to assist me what I learned

 

Guess you like

Origin www.cnblogs.com/goubb/p/11261477.html