Java single application - Architecture Mode - 03. Design mode - 24. Template mode

Original address: http://www.work100.net/training/monolithic-architecture-design-patterns-template-pattern.htmlMore tutorials: Beam cloud - free course Template mode Serial number Chapter in text video 1 Summary - 2 Realization - Please refer to the navigation above for reading 1. overview In Template Pattern, an abstract class expos ...

Added by Rollo Tamasi on Fri, 13 Mar 2020 15:53:20 +0200

[Spring Data series learning] Spring Data JPA custom query, paging, sorting, and condition query

Spring Boot Jpa provides methods such as CURD by default, which often fail to meet our business requirements in daily life. In this chapter, a simple query case is defined to explain. Quick start pom.xml and application.properties in the project are the same as Chapter 1 Entity class mapping database table user entity class @Entity public class ...

Added by jameslynns on Sun, 08 Mar 2020 14:46:28 +0200

Spring MVC international configuration

What is internationalization? Internationalization is the development of technologies that support multiple languages and data formats. In fact, it dynamically responds localized resources to users according to external characteristics. Localization resource profile To realize internationalization i ...

Added by Locust on Thu, 05 Mar 2020 07:39:05 +0200

Spring MVC learning notes 02

Process model data: If data is needed for jump, VM can use the following methods ModelAndView,ModelMap,Map,Model Data placement request Scope of action //Example: public String testModelMap(ModelMap mm){ //The returned ModelAndView has both data and view Student student = new Student(); st ...

Added by conor.higgins on Fri, 14 Feb 2020 15:10:10 +0200

idea automatically generates annotated entities

idea generates annotated entity classes automatically idea generates annotated entity classes automatically Explain idea configuration database idea add groovy file Generate annotated entities summary idea generates annotated entity classes automatically Explain The idea itself has an operat ...

Added by JimBadger on Fri, 07 Feb 2020 10:45:58 +0200

Three ways of Hibernate inheritance mapping

Single table design Put all the tables into one table of the parent class. A DiscriminatorColumn is needed to distinguish different subclasses. Create Person, Student, Teacher class Student and Teacher all inherit Person. Use @ inheritance in Person class (strategy = inheritancetype. Single_table) Spe ...

Added by kkessler on Wed, 29 Jan 2020 17:23:49 +0200

Talking about hibernate

This article mainly introduces the Hibernate framework, the concept of ORM and the introduction of hibernate. I believe you will use hibernate after reading it. If you want speed, you will not reach it. If you want speed, you will reach it! 1, Basic concepts hibernate is an ORM framework, which is called object "relative database mappin ...

Added by chaddsuk on Sun, 19 Jan 2020 07:53:08 +0200

Using ORM tools in simple JDBC programs

This article comes from the "excellent course" -- to elaborate on the architecture. ORM (object relational mapping) is an excellent tool for database programming. With a little experience and the power of Java annotations, we can build complex database systems and take advantage of productivity relatively easily. Relational databases ...

Added by bufke on Thu, 16 Jan 2020 11:22:28 +0200

Spring JdbcTemplate

I wrote an article yesterday Why don't many people want to use hibernate? Blog, with the majority of ape friends to discuss the advantages and disadvantages of hibernate and the way to connect to the database, go home to study, found that Spring JdbcTemplate is very useful, made a summary, share to you. Disclaimer: This article is just a littl ...

Added by tooNight on Tue, 14 Jan 2020 11:05:31 +0200

The most powerful project in the history: the realization of user's microservice function

We have analyzed the users of the system, including the users of the background management system and the users of the front-end portal. In theory, the two should be managed separately. But for our project, there is no need to do such comprehensive and complex functions in the early stage, so at present ...

Added by j_70 on Sun, 12 Jan 2020 10:42:11 +0200