Good programmers Java tutorial Share javaweb framework

  Good programmers Java tutorial Share javaweb framework : Java is open source, a lot of frameworks that can solve specific problems and improve development efficiency, simplify our code complexity, and now a lot of people in addition to general mainstream framework, many companies for your business will be custom frame inside some companies, of course, we must first understand the learner as the most popular javaweb framework for what?

 

  Answer this question we first look at the size of the project, for "body mass" in a smaller single application projects, and the need to handle huge amounts of data, high concurrency, distributed learning to use the framework of the project is different.

 

  For the "body mass" in a smaller single-use items:

 

  ORM -frame, many Javaweb the program needs to use a relational database for data persistence, so the need for such a framework for database operations, that is, for JDBC to encapsulate ORM framework is to be learned, the more popular is based on SQL 's mybatis framework, which is a lightweight ORM frameworks, learning to use them easier to use, as well as the same type of Hibernate framework.

 

  MVC -frame, MVC the program into the view layer, the control layer, layer from the logic model, the layers perform their duties, the relationship is the relationship between the cross call and not interdependent, this model well suited changes in demand for software upgrades and changes. Application of more current MVC framework is springMVC framework that there is a clear separation of roles, there is a strong and straightforward configuration and efficient binding and validation, and many other advantages. Earlier Struts2 framework is MVC framework.

 

  Spring framework, in fact, Java 's many practitioners are not open around Spring , Spring family has a lot of "tools", the process of programming ideas from face to face object is a huge step forward, but with the program more complex, more and more objects more efficient "management" and the application of these objects become increasingly important, Spring 's IoC is to create objects of "management" referred Spring container to carry out, to achieve inversion of control, while providing a variety of value injection (DI) way to greatly improve and simplify our work, which is javaweb need to learn the spring of IoC / DI; when our program business is more complex, in addition to complete the core function, but also need to complete the injection of exception handling, logging records, transaction processing and other conventional features, these conventional operation is more exhausting, SpringAOP ( Aspect oriented programming ) is to solve this problem.

 

  Javaweb need to learn some front-end framework, especially the problem has been mentioned in written data interface, or already have a simple background, front-end framework jQuery is that we must learn, if the project is based on efficiency considerations, separating the front and rear end needs, you can learn vue and other frameworks.

 

  For the huge amounts of data, high concurrency types of distributed projects, data characteristics of this type of project is the previously mentioned need to deal with a large amount of data such as two-eleven orders Ali need to be addressed, such as 12306 grab the tickets.

 

  Caching database query efficiency lifting frame Redis , this framework in order to enhance efficiency of reading data may also be used in a single application, data from a relational database by first Redis stored in the cache, the read data directly from the cache speed ratio will read from the hard disk is much higher, further Redis can be clustered from the master configuration server or the like, easy to use, as well as the same type of memcached frame ;

 

  In a distributed, the service cluster load balancing is especially important, Nginx is a high-performance HTTP and reverse proxy services framework that supports a variety of load balancing algorithms ;

 

  Message queue framework: RabbitMQ , ActiveMQ , RocketMQ and other electricity providers in the system, when the settlement order, the need for changes in operations such as the integration of large amounts of these operations, such as if the end of the score in the settlement success notify the user, apparently not feasible, then the time integral of the change operations handed over to the message queue to complete.

 

  Search framework, in order to enhance the efficiency of the search, create a search index database and Chinese word search, etc., may be used solr framework, as well as the same type of ElasticSearch

 

  Distributed File System frame for files used Fastdfs

 

  Springboot framework, simplifying the spring of complex configuration, provides Thymeleaf template, a lot of micro-services are based on Springboot of ;

 

  After the micro-Services Framework, to split into several applications for the service, well adapted and high concurrency processing huge amounts of data, but micro-management services is also very important, currently based on the framework service registry, service monitor has Dubbo + zookeeper there SpringCloud , which includes SpringCloudEureka , SpringCloudRibbon , SpringCloudFeign , SpringCloudHystrix , SpringCloudZuul , SpringCloudConfig , SpringCloudZipKin , SpringCloudSleuth the like ;

 

  Other frameworks, there are many items in accordance with some specific requirements of the frame, for example, logging log4j framework for authentication and authorization shiro frame, the workflow processing Activite framework.

 

  To summarize: The best way to learn is that in the framework of practical projects to apply this principle to the framework, the application process can have a good learning effect, if simply to do some simple Demo lot of scenarios, frame, optimization , precautions are learning not comprehensive.

  


Guess you like

Origin blog.51cto.com/14573321/2446746