Mybatis plus is easy to use

Mybatis-Plus 1 Introduction to mybatis plus Official website address Mybatis plus (mp for short) is an enhancement tool of mybatis. Based on mybatis, it is only enhanced without change. It is developed for simplification and efficiency. characteristic: No invasion: it is only enhanced without change, and its introduction will not affect ...

Posted by direction on Thu, 17 Feb 2022 22:35:18 +0100

Java project: design and implementation of Aiyou travel platform (java+springboot+ssm)

Source code acquisition: download from "resources" on the blog home page! Project significance: Since the reform and opening up, China's tourism has developed rapidly, but comparatively speaking, the breadth and depth of China's tourism development are far from meeting the needs of economic development and the improvement of peopl ...

Posted by jandrews3 on Thu, 10 Feb 2022 20:03:51 +0100

RBEC (rights management system)

RBEC (rights management system) 1. Importance of RBEC in the project In enterprise projects, due to the different permissions of personnel and the temporary change or change of permissions, the addition of new users or new roles will also need to be changed. Therefore, there is an urgent need for a dynamic permission allocation system, which i ...

Posted by prent327 on Thu, 10 Feb 2022 19:59:25 +0100

MP update user add form

MP update operation 1.1 update operation @SpringBootTest public class TestMP2 { @Autowired private UserMapper userMapper; /** Change the user name of ID=229 to June 1 children's day. */ @Test public void updateUser(){ User user = new User(); user.setId(229).setName("children's Day"); //set name="xxx" where id = 229 userMapper.upda ...

Posted by sneha1234 on Mon, 07 Feb 2022 12:10:15 +0100

Spring 5 from entry to grave: developing with annotations

jdk1.5 start supporting annotations, spring 2 5 start comprehensive direct annotation Preparation: inject attributes by annotation 1. Introduce the context file header into the spring configuration file <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.o ...

Posted by johanafm on Wed, 02 Feb 2022 06:10:49 +0100

Developing spring MVC with annotations

Developing spring MVC with annotations Statement: This article is a study note, written according to spring MVC of madness theory SpringMVC 4.2.4.RELEASE Chinese document I. Development with annotations 1. We conduct POM Dependency injection of XML: <build> <resources> <resource> ...

Posted by birdie on Tue, 01 Feb 2022 19:33:09 +0100

Easy to understand -- Mybaties entry code is a must for farmers to avoid pits

Mybatis actual combat Tip: you can add the directories of all articles in the series here. You need to add the directories manually For example: the first chapter is the use of pandas, an introduction to Python machine learning Tip: after writing the article, the directory can be generated automatically. For how to generate it, please refer ...

Posted by crazylegseddie on Tue, 01 Feb 2022 08:56:17 +0100

Common interview questions of Mybatis in SSM framework series

 19.  19. One to one and one to many association queries?     <mapper namespace="com.lcb.mapping.userMapper"> <!--association One to one association query --> <select id="getClass" parameterType="int" resultMap="ClassesResultMap"> select * from class c,teacher t where c.teacher_id=t.t_id ...

Posted by bertfour on Sat, 29 Jan 2022 01:03:13 +0100

Spring5 from entry to grave 01

Spring framework overview Spring makes it easy to create Java enterprise applications. It provides everything needed to use the Java language in the enterprise environment, supports Groovy and Kotlin as alternative languages on the JVM, and can flexibly create a variety of architectures according to the needs of applications. Starting with Spr ...

Posted by NSW42 on Thu, 27 Jan 2022 16:03:34 +0100

The SSM project uses interceptors to realize login authentication

The SSM project uses interceptors to realize login authenticationLogin interface implementation public User queryUser(String UserName, String Password,HttpServletRequest request, HttpServletResponse response) { User user = userMapper.queryUser(UserName,Password); if(!StringUtils.isEmpty(user)){ //1. Get session ...

Posted by bschultz on Mon, 24 Jan 2022 00:46:07 +0100