計(jì)算機(jī)畢業(yè)設(shè)計(jì)JAVA畢業(yè)設(shè)計(jì)
《計(jì)算機(jī)畢業(yè)設(shè)計(jì)JAVA畢業(yè)設(shè)計(jì)》由會(huì)員分享,可在線閱讀,更多相關(guān)《計(jì)算機(jī)畢業(yè)設(shè)計(jì)JAVA畢業(yè)設(shè)計(jì)(13頁珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、英文原文: Java is a simple, object-oriented, distributed, interpreted, robust security, structure-neutral, portable, high performance, multithreaded dynamic language. The main advantage of Java language, Java applications across hardware platforms and operating systems for transplant - this is because
2、the JVM is installed on each platform can understand the same byte code. Java language and platform scalability is very strong. At the low end, Java language is the first open standards technology support enterprise one, support the use of XML and Web service can not stride business lines to share i
3、nformation and applications Cheng Xu. There are three versions of Java platform, which makes software developers, service providers and equipment manufacturers can target specific market development: 1. Java SE formapplications. Java SE includes support for Java Web services development
4、classes, and for the Java Platform, Enterprise Edition (Java EE) to provide a basis. Most Java developers use Java SE 5, also known as Java 5.0 or "Tiger". 2. Java EE formerly known as J2EE. Enterprise Edition to help develop and deploy portable, robust, scalable and secure server-side Java ap
5、plications. Java SE Java EE is built on the foundation, which provides Web services, component model, management and communication API, can be used to achieve enterprise-class service-oriented architecture and Web 2.0 applications. 3. Java ME formerly known as J2ME. Java ME devices in mobile a
6、nd embedded applications running on a robust and flexible environment. Java ME includes flexible user interfaces, robust security model, and many built-in network protocols and networking that can be dynamically downloaded and extensive support for offline applications. Java ME-based application spe
7、cification only write once and can be used in many devices and can use the native features of each device. Java language is simple. Java language syntax and the C language and C ++ language is very close, Java discarded the C++, rarely used, hard to understand the characteristics, such as oper
8、ator overloading, multiple inheritance, the mandatory automatic type conversion. Java language does not use pointers, and provides automated waste collection. Java is an object-oriented language. Java language provides classes, interfaces and inheritance of the original language, for simplicity, onl
9、y supports single inheritance between classes, but support multiple inheritance between interfaces and support classes and interfaces to achieve between the mechanism (keyword implements) . Java language fully supports dynamic binding, and C ++ language used only for dynamic binding of virtual funct
10、ions. In short, Java language is a pure object-oriented programming language. Java language is distributed. Java language support for Internet application development, Javas RMI (remote method activation) mechanism is also an important means of developing distributed applications. Java language is r
11、obust. Javas strong type system, exception handling, automated waste collection is an important guarantee robust Java programs. Java language is safe. Java is often used in network environment, this, Java provides a security mechanism to prevent malicious code attacks. Java language is portabl
12、e. This portability comes from the architecture neutrality. Java system itself is highly portable. Java language is multi-threaded. In the Java language, the thread is a special object, it must Thread class or the son (Sun) class to create. Java language support simultaneous execution of multiple th
13、reads, and provide synchronization mechanisms between threads (keyword synchronized). Java language features make Java an excellent application of unparalleled robustness and reliability, which also reduced application maintenance costs. Java on the full support of object technology and Java P
14、latform API embedded applications to reduce development time and reduce costs. Javas compile once, run everywhere feature can make it anywhere available to provide an open architecture and multi-platform, low-cost way of transmitting information between. Hibernate Hibernate is a lightweight JDBC obj
15、ect package. It is an independent object persistence framework, and the App Server, and EJB is no necessary link. Hibernate can use JDBC can be used in any occasion, such as Java application, database access code, DAO interface implementation class, or even access the database inside a BMP code. In
16、this sense, Hibernate, and EB is not a category of things that did not exist either-or relationship. Hibernate and JDBC is a closely related framework, the Hibernate and JDBC driver compatibility, and databases have some relationship, but the Java program and use it, and the App Server does no
17、t have any relationship, there was no compatibility issues. 1614Hibernate provides two Cache, first-level cache is a Session-level cache, which cache belongs to the scope of services. This level of cache by the hibernate managed without the need for intervention under normal circumstances; second-le
18、vel cache is SessionFactory-level cache, it belongs to the process of range or scope of the cache cluster. This level of cache can be configured and changed, and can be dynamically loaded and unloaded. Hibernate query results also provide a query cache, it depends on the second level cache. Wh
19、en an application called Sessions save (), update (), saveOrUpdate (), get () or load (), and the query interface call list (), iterate () or filter () method, if the Session cache does not exist a corresponding object, Hibernate will put the object to the first level cache. When cleaning the cache,
20、 Hibernate objects according to the state of the cache changes to synchronize update the database. Session for the application provides two methods of managing the cache: evict (Object obj): removed from the cache parameters of the specified persistent object. clear (): Empty the cache of all persis
21、tent objects. Hibernate second-level cache strategy general process is as follows: 1) The condition when a query is always issued a select * from table_name where .... (Select all fields) such as SQL statement to query the database, an access to all of the data object. 2) all the d
22、ata objects to be placed under the ID to the second level cache. 3) When the Hibernate object-based ID to access the data, the first check from the Session a cache; finding out, if the configuration of the secondary cache, then the secondary cache from the investigation; finding out, and then
23、query the database, the results in accordance with the ID into the cache. 4) remove, update and increase the time data, while updating the cache. Hibernate second against the conditions of the Query Cache. Hibernate object-relational mapping for the delay and non-delay object initializ
24、ation. Non-lazy when reading an object and the object will be all read out together with other objects. This sometimes results in hundreds (if not thousands of words) select statement when reading the object implementation. This problem sometimes occurs when using the two-way relationship, often lea
25、ding to the databases to be read during the initialization phase out. Of course, you can take the trouble to examine each object and other objects of Guanxi, and to the most expensive of the Shan Chu, but in the last, we may therefore lose Le ORM tool this Xiangzai obtained Bian Li. A cache an
26、d secondary cache of comparison: the first level cache second level cache data stored in the form of interrelated persistent objects the object of bulk data cache range of the scope of services, each transaction has a separate first-level cache process range or scope of the cluster, the cache is the
27、 same process or cluster to share on all matters within the concurrent access policies because each transaction has a separate first-level cache, concurrency problem does not occur without the need to provide concurrent access policy will be a number of matters simultaneous access to the same second
28、-level cache data, it is necessary to provide appropriate concurrent access policies, to ensure that a particular transaction isolation level data expiration policies did not provide data expiration policies. Object in a cache will never expire, unless the application explicitly clear the cache or c
29、lear a specific object must provide data expiration policies, such as memory cache based on the maximum number of objects, allowing objects in the cache of the most a long time, and allowing the object in the cache the longest idle time of physical memory and hard disk memory storage medium. First o
30、f all bulk data objects stored in the memory-based cache, when the number of objects in memory to data expiration policy specified limit, the remaining objects will be written on the hard disk cache. Caching software implementation of the Hibernate Session is included in the realization of the cache
31、 provided by third parties, Hibernate provides only a cache adapter (CacheProvider). Used to plug into a particular cache in Hibernate. Way cache enabled applications by as long as the Session interface implementation save, update, delete, data loading and query the database operations, Hibernate wi
32、ll enable first-level cache, the data in the database in the form of an object copied to the cache For batch updates and bulk delete operations, if you do not want to enable first-level cache, you can bypass the Hibernate API, JDBC API directly to perform that operation. Users can type in a single c
33、lass or a single set of second-level cache size on the configuration. If the instance of the class are frequently read but rarely modified, you can consider using a second-level cache. Only for a class or set of second-level cache is configured, Hibernate will run when an instance of it to the secon
34、d-level cache. User management means the first level cache of physical media for the memory cache, because the memory capacity is limited, must pass the appropriate search strategies and retrieval methods to limit the number of objects loaded. Session of the evit () method can explicitly clear the c
35、ache a specific object, but this method is not recommended. Second-level cache memory and the physical media can be a hard disk, so the second-level cache can store large amounts of data, data expiration policy maxElementsInMemory property values can control the number of objects in memory. Second-l
36、evel cache management mainly includes two aspects: Select to use the second-level cache of persistent classes, set the appropriate concurrency strategy: Select the cache adapter, set the appropriate data expiration policies. One obvious solution is to use Hibernates lazy loading mechanism prov
37、ided. This initialization strategy is only invoked in an object-to-many or many to many relationship between its relationship only when read out of the object. This process is transparent to the developer, and only had a few requests for database operations, it will be more obvious performancehave o
38、pen. This will be by using the DAO pattern abstracts the persistence time of a major problem. Persistence mechanisms in order to completely abstract out all of the database logic, including open or closed session, can not appear in the application layer. The most common is the realization of the sim
39、ple interface of some DAO implementation class to encapsulate the database logic completely. A fast but clumsy solution is to give up DAO mode, the database connection logic to add the application layer. This may be an effective small applications, but in large systems, this is a serious design flaw
40、, preventing the system scalability. Struts2 Struts2 is actually not a stranger to the Web frameworks, Struts2 is Webwork design ideas as the core, absorb Struts1 advantages, so that the Struts2 is the product of the integration Struts1 and Webwork. MVC Description: Struts2 WebWork is compatib
41、le with the MVC framework Struts1 and since, that the MVC framework on the MVC framework will have to make a brief, limited to a brief, if want to learn more about MVC can view the related knowledge document, or to find a Struts1 books, I believe the above is not rare on the length of MVC. Closer to
42、 home, in fact, Java the present situation of these frameworks, its ultimate goal is to contact coupling, whether Spring, Hibernate or the MVC framework, are designed to increase contact with coupling reuse. MVC contact with the coupling between View and Model. MVC consists of three basic parts: Mod
43、el, View and Controller, these three parts work together to minimize the coupling to increase the scalability of the program and maintainability. Various parts of the implementation technology can be summarized as follows: 1) Model: JavaBean, EJBs EntityBean 2) View: JSP, Struts in TagLi
44、b 3) Controller: Struts the ActionServlet, Action To sum up the advantages of MVC mainly about aspects: 1) corresponds to multiple views can be a model. By MVC design pattern, a model that corresponds to multiple views, you can copy the code and the code to reduce the maintenance amoun
45、t, if model changes, but also easy to maintain 2) model the data returned and display logic separate. Model data can be applied to any display technology, for example, use the JSP page, Velocity templates, or directly from Excel documents, etc. 3) The application is separated into three
46、layers, reducing the coupling between the layers, providing application scalability 4) The concept of layers is also very effective, because it put the different models and different views together, to complete a different request. Therefore, the control layer can be said to include the concep
47、t of user requests permission 5) MVC more software engineering management. Perform their duties in different layers, each layer has the same characteristics of the components is beneficial tool by engineering and production management of program code Struts2 Introduction: Struts2 Struts1 de
48、velopment appears to come from, but in fact Struts1 Struts2 and design ideas in the framework of the above is very different, Struts2 WebWorks design is based on the core, why not follow the Struts1 Struts2 design ideas After all, Struts1 in the current enterprise applications market is still very b
49、ig in the, Struts1 some shortcomings: 1) support the performance of a single layer 2) coupled with the Servlet API serious, this could be the Execute method from the Action Statement which you can see them 3) The code depends Struts1 API, there are invasive, this can be written whe
50、n the Action class and look out FormBean, Action Struts in Action class must implement The reason for Struts2 WebWorks design for the core point is the recent upward trend of WebWork and play WebWork not Struts1 above those shortcomings, more MVC design ideas, and more conducive to reuse the c
51、ode. Based on the above description can be read out, Struts2 architecture and architecture Struts1 very different, Struts1 is to use the ActionServlet as its central processor, Struts2 is using an interceptor (FilterDispatcher) as its central processor, so One benefit is to make Action class and Ser
52、vlet API was isolated. Struts2 simple process flow is as follows: 1) browser sends a request 2) the processor to find the corresponding file under struts.xml the Action class to process the request 3) WebWork interceptor chain applications automatically request common functions,
53、such as: WorkFlow, Validation functions 4) If Struts.xml Method configuration file parameters, then call the corresponding Action Method parameters in the Method class method, or call the Execute method to deal with common user request 5) Action class method returns the results of the co
54、rresponding response to the browser Struts2 and Struts1 contrast: 1) Action class impleme achieve the time to achieve any classes and interfaces, while providing a ActionSupport class Struts2, however, not required. 2) Struts1 the Action class is the singleton pattern, must be designed
55、 into the thread-safe, Struts2 was generated for each request for an instance 3) Struts1 the Action class dependence and the Servlet API, execute the method from its signature can be seen, execute method has two parameters Servlet HttpServletRequest and HttpServletResponse, Struts2 is not depe
56、ndent on the Servlet API 4) Struts1 depends on the Servlet API the Web elements, therefore, of Action Struts1 when testing is difficult, it needs with other testing tools, Struts2 in Action can be as testing a number of other classes as Service Model layer test 5) Struts1 of Action and t
57、he View through the ActionForm or its sub-class of data transmission, although there LazyValidationForm this ActionForm appearance, but still can not like the other levels as a simple POJO data transfer, and Struts2 would like expect change becomes a reality 6) Struts1 binding of the JSTL, the
58、 preparation of convenience for the page, Struts2 integrates ONGL, you can use JSTL, Therefore, Struts2 is more powerful expression language under Compared with Struts2 WebWork: Struts2 actually WebWork2.3, however, Struts2 WebWork, or with a little difference: 1) Struts2 IOC no longer suppo
59、rt the built-in containers, use Springs IOC container 2) Struts2 Ajax for Webwork features some of the label to use Dojo to be replaced Servlet Servlet is a server-side Java application, platform and protocol independent features that can generate dynamic Web pages. Customer requests to pla
60、y it (Web browser or other HTTP client) and server response (HTTP server, database or application) of the middle layer. Servlet Web server is located inside the server-side Java applications started from the command line with the traditional application of different Java, Servlet loaded by the Web s
61、erver, the Web server must include the Java Virtual Machine to support Servlet.
HTTP Servlet using a HTML form to send and receive data. To create an HTTP Servlet, need to extend the HttpServlet class, the class is a special way to handle HTML forms GenericServlet a subclass. HTML form is 62、M> and FORM> tag definition. Form typically includes input fields (such as text input fields, check boxes, radio buttons and selection lists) and a button for submitting data. When submitting information, they also specify which server should implement the Servlet (or other program). HttpServlet 63、class contains the init (), destroy (), service () and other methods. Where init () and destroy () method is inherited.
init () method: In the Servlet life period, only run once init () method. It is executed when the server load Servlet. You can configure the server to start the server or t 64、he clients first visit to Servlet fashion into the Servlet. No matter how many clients to access Servlet, will not repeat the init (). The default init () method is usually to meet the requirements, but can also use custom init () method to overwrite it, typically the management server-side resource 65、s. For example, you may write a custom init () to be used only once a load GIF images, GIF images and improve the Servlet returns with the performance of multiple clients request. Another example is to initialize the database connection. The default init () method sets the Servlet initialization par 66、ameters, and use its ServletConfig object parameter to start the configuration, all covered by init () method of the Servlet should call super.init () to ensure that still perform these tasks. In the call to service () method before, make sure you have completed the init () method.
service () method: service () method is the core of Servlet. Whenever a client requests a HttpServlet object, the object of the service () method must be called, and passed to this method a "req
- 溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 【初中生物】人教版八年級(jí)生物上冊(cè)細(xì)菌、真菌和病毒復(fù)習(xí)課件
- 碩士研究生開題報(bào)告p16在宮頸癌發(fā)生中的作用及其機(jī)制的研究課件
- 六年級(jí)數(shù)學(xué)上冊(cè)《數(shù)學(xué)廣角—數(shù)與形》課件
- 華東師大版八年級(jí)上冊(cè)數(shù)學(xué)第12章--整合提升作業(yè)ppt課件含答案
- 《糧食來得真不容易》教學(xué)課件
- 熱力環(huán)流公開課教學(xué)課件高中地理
- 人工耳蝸的新進(jìn)展課件
- 皮下注射低分子肝素鈣課件
- 腸梗阻圍手術(shù)期護(hù)理ppt課件
- 藥用動(dòng)物學(xué)緒論01
- 國際營銷專業(yè)英語Unit 4 How to Do Market Research
- 3標(biāo)點(diǎn)符號(hào)的使用方法(用)匯總
- 物質(zhì)濫用病人之護(hù)理課件
- 名師PPT——特殊保護(hù)課件
- 大學(xué)生創(chuàng)新創(chuàng)業(yè)訓(xùn)練計(jì)劃項(xiàng)目答辯課件