Introduction to Mybatis and coding process 2021-09-20
Mybatis application
1 Introduction to Mybatis and coding process 2 mapper agent development method 3 global profile 4 input mapping and output mapping 5 Association query 6 delayed loading 7 dynamic SQL 8 Mybatis cache
1, What is Mybatis
Mybatis reference website: http://www.mybatis.org/mybatis-3/zh/index.html Github source address: ht ...
Posted by PHP-Nut on Mon, 20 Sep 2021 23:26:33 -0700
Spring MVC learning notes
SpringMVC
The resume of spring MVC is based on spring. Spring learning reference Spring learning notes
1, Integration with Web
1. Integration of spring and Web Environment
1.1 ApplicationContext application context acquisition method
The application context object is obtained through the new ClasspathXmlApplicationContext(spring config ...
Posted by ugriffin on Mon, 20 Sep 2021 21:36:12 -0700
Introduction to Spring Boot Development -- Web services with Restful interface
Preface: content tips of this article
Create a Spring Boot based web project on Idea. When the client browser accesses the web service resources with get, put, post, etc., the server can make correct results. Install Postman software and test your web with Postman.
1, Create a Spring Boot based web project on IDEA
The specific steps ...
Posted by Rianna on Mon, 20 Sep 2021 21:09:19 -0700
Related bug s about connecting zookeeper
Connecting zookeeper related bug s
After learning about ssm recently, you need to further study dubbo and its required registration center zookeeper. However, a bug was encountered when writing an introductory case, which is as follows:
Caused by: java.lang.IllegalStateException: zookeeper not connected
at org.apache.dubbo.remoting.zookeepe ...
Posted by Sillysoft on Mon, 20 Sep 2021 20:38:52 -0700
Spring, spring MVC and Mybatis framework integration configuration template (ready to use)
✍, Spring, spring MVC and Mybatis framework integration
Every time you build an SSM framework integration environment, you always need to configure dependencies in advance. Every time you add a configuration, you need to look through the official website documents or notes, which is a waste of time and sometimes cited errors.This paper integra ...
Posted by pmiller624 on Mon, 20 Sep 2021 18:46:09 -0700
SpringBoot learning notes 1: basic content
SpringBoot Basics
SpringBoot overview
SpringBoot: SpringBoot provides a way to quickly use Spring. Based on the idea that convention is better than configuration, developers do not have to switch between configuration and business logic, which greatly improves the development efficiency.
Spring disadvantages
Cumbersome configuration Al ...
Posted by playaz on Mon, 20 Sep 2021 16:17:28 -0700
Spring learning - IOC container
2.IOC container
1.IOC container
1. What is IOC (control reversal)
(1) leave the object creation and the calling process between objects to Spring for management (2) purpose of using IOC: to reduce the coupling degree (3) People's case is IOC implementation
2.IOC underlying principle
xml parsing, factory schema, reflection
(1) .xml parsin ...
Posted by Natty_Dreadlock on Mon, 20 Sep 2021 10:21:19 -0700
Start SpringCloud Alibaba from scratch (84) - Thread pool in SpringBoot
Preface
Recently, I need to use multi-threading, it is very difficult to maintain thread pool by myself. I happen to see an example of springboot integrated thread pool. Here I try and summarize it, record it, and share it with friends I need.
This multithreaded implementation is relatively simple, regardless of transactions. There are the fo ...
Posted by kentlim04 on Mon, 20 Sep 2021 09:15:43 -0700
Spring Cache cache details
preface
Spring's cache cache is similar to java's JDBC. It defines a set of specifications. Third party caching needs to implement this set of specifications in order to use the caching function through the Spring API. The core interfaces of this specification are CacheManager and cache. CacheMananger is the entry to get the cache. Cache is an ...
Posted by lives4him06 on Mon, 20 Sep 2021 05:33:31 -0700
Unified return and exception handling commonly used in Java projects
First create a crud project.
controller calls service and mapper
The following is replaced by simple code
controller
@GetMapping("/getUserById")
public String getUserById(String id){
String userById = userService.getUserById(id);
return userById;
}
service
@Override
public String getUserById(String ...
Posted by savedlema on Sun, 19 Sep 2021 19:33:01 -0700