Spring boot integrates wechat applet to realize login, addition, deletion, modification and query

Project Description: in the wechat applet, log in and verify with the spring boot operation database. I use spring boot to integrate the mybatis plus and mysql operation database 1. Preparation before development 1.1 prior knowledge java Foundation SpringBoot simple Basics 1.2 environmental parameters Development tools: IDEA Basic environm ...

Posted by Ixplodestuff8 on Sat, 02 May 2020 02:21:48 -0700

2.1 mybatis? Helloworld01 (native programming)

To learn mybatis, you can follow the official website to learn http://www.mybatis.org/mybatis-3/configuration.html ා properties There are two ways to write mybatis? HelloWorld 2.2 Mybatis? Helloworld02 (interface programming) Now, the second way is commonly used: interface programming Let's look at the first way: Step: Import jar packa ...

Posted by areid on Fri, 01 May 2020 18:08:20 -0700

Set up the ssm framework to realize login, data display, addition, deletion, modification and query

Requirements: Use ssm (spring spring MVC mybatis) for integration in the background Using bootstrap framework in the foreground Using Ajax to send between front and back Table structure:   After login, all user information will be displayed, and each can be added, deleted, modified and checked The user name and user PWD of this table are also u ...

Posted by esmarts on Thu, 30 Apr 2020 11:55:03 -0700

To add a database to a Java project

1. Add code to create database (similar to SQL statement) Add init schema.sql database syntax creation file to test resource file 2. Adding database in POM file depends on MySQL connector Java and mybatis spring boot starter <!--Add database dependency--> <dependency> <groupId>mysql</groupId> ...

Posted by sergio-pro on Thu, 30 Apr 2020 10:00:21 -0700

Spring and MyBatis integrate to automatically generate text type pit in the code

After Spring and MyBatis are integrated, dao and mapper configuration files are generated by using the automatic code generation tool. The steps are as follows (take Intelli idea as an example). Write the generate code configuration file generatorConfig.xml. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE generatorConfiguration ...

Posted by matthew1 on Thu, 30 Apr 2020 05:27:55 -0700

A good paging plug-in of Mybatis com.github.pagehelper

1. Need to import the jar package of PageHelper If maven is not used, just import the jar package into the lib folder. The PageHelper plug-in has open source on github, Address: https://github.com/pagehelper/Mybatis-PageHelper/tree/master/src/main/java/com/github/pagehelper.   If maven is used, the plug-in can be introduced in pom.xml as fol ...

Posted by Brown on Wed, 29 Apr 2020 09:07:49 -0700

Several ways to register Spring Bean

All roads lead to dragons and horses Premise: please https://blog.csdn.net/dong19891210/article/details/105697175 In case of Spring bean s can be registered in the following ways: 1. Register through GenericBeanDefinition Example code: Message helper class public class Message { private String message; public String getMessage() { retu ...

Posted by mahaguru on Mon, 27 Apr 2020 21:21:30 -0700

MyBatis level 1 cache implementation details and precautions

Introduction to L1 cache In the process of application running, it is possible for us to execute multiple SQL queries with the same query conditions in a database session. MyBatis provides the scenario of optimizing the first level cache. If the SQL statements are the same, the first level cache will be hit first, so as to avoid directly queryi ...

Posted by phpORcaffine on Sun, 26 Apr 2020 09:16:35 -0700

Spring boot series elegant handling of unified exception handling and unified result return

Spring boot series (x) unified exception handling and unified result return Previous recommendation Spring boot series (I) idea new spring boot project Introduction to SpringBoot series (2) Spring boot series (3) configuration file details Spring boot series (IV) detailed explanation of web static resource configuration Spring boot series (V) M ...

Posted by countcet on Sun, 26 Apr 2020 06:25:32 -0700

Using mybatis plus 3.1.2 and Druid 1.1.20 invalidates the serialization and deserialization of localdateformat to a custom date format string

Time record April 21, 2020 Preface       At present, the project reconstruction adopts springboot2.1.13 to integrate mybatis-plus3.1.2 and druid connection pool 1.1.20. When the response body json result set and the request body json result set are returned in the controller controller controller, both serialization and dese ...

Posted by dnice on Mon, 20 Apr 2020 21:29:42 -0700