SpringBoot from getting started to giving up, Chapter 1

I. brief introduction Let's talk about what Spring is Spring is an open source framework. Spring is a lightweight java development framework that emerged in 2003. Rod Johnson wrote expert one on one J2EE development and design. Spring is created to solve the complexity of enterprise application development. Using spring, you can make simple J ...

Posted on Tue, 12 Nov 2019 01:58:05 -0500 by frog_jr

Use and integration of spring cache and ehcache

The project needs to be cached, so I learned 1. Use and integration of spring cache and ehcache 2. Cache hit ratio and other statistics 1. spring cache 1. Overview Spring 3.1 introduces annotation-based cache technology 2. Required jar packages          3. Usage Deposit @ Cacheable(value="cache container), key="key value&quo ...

Posted on Mon, 11 Nov 2019 22:55:26 -0500 by bhavin12300

9. Merchandise Modification Function of SpringMVC Annotation Development

Develop mapper Generate code using reverse engineering mybatis-generator. Develop service Add two interfaces to com.iot.learnssm.firstssm.service.ItemsService /** * Query commodity information based on id */ ItemsCustom findItemsById(Integer id); /** * Modify commodity information */ void updateItems(Integer id,ItemsCustom itemsCustom); Imple ...

Posted on Mon, 11 Nov 2019 21:52:50 -0500 by Destruction

MyBatis configuration and critical component combing

1. Why MyBatis Profile In fact, MyBatis profiles are rarely used anymore, because we don't usually use MyBatis alone, but with Spring. In Spring, we typically configure a SqlSessionFactoryBean to create a SqlSessionFactory, whereas we typically do not create a SqlSessionFactory by parsing the configuration file. But configuration files are impo ...

Posted on Mon, 11 Nov 2019 19:51:00 -0500 by ytse

Java IO flow -- application scenario exercise

Java IO flow application scenario programming Preface Java provides rich subclasses of byte stream base classes InputStream and OutputStream, character stream Reader and Writer to adapt to different application scenarios. In the actual use of Java IO, various IO flows need to be combined to meet the needs of the scenario. ...

Posted on Mon, 11 Nov 2019 17:58:43 -0500 by mmoore

Fluent python: Taxi simulation example

This simple example makes it easy to see the operation mode of the event driven framework, that is to use a main loop to drive the cooperation process to execute concurrent activities in a single thread. When event oriented programming is done by using a process, the process will constantly give control to the main loop, activate and run other ...

Posted on Mon, 11 Nov 2019 17:12:27 -0500 by Democreous

Concurrent transformation process of a reptile

The thing is like this: because in writing a small program of Douban lottery, I need to grab all the user information forwarded by Douban broadcast, and then extract the lucky audience from these users. Typical IO intensive operation. First, the crawler needs to enter the broadcast to find out how many forwarding pages there are in total, which ...

Posted on Mon, 11 Nov 2019 11:57:00 -0500 by billcoker

java version of e-commerce spring cloud distributed micro service b2b2c social e-commerce service registration (consumer)

Spring cloud B2B2C e-commerce social platform source code Please add Penguin: 103874626. This article focuses on the spring cloud consumer component, which is a tool to provide service discovery and configuration. Consumer is distributed, highly available and highly scalable. I. about consumer Consumer has the following properties: Service ...

Posted on Mon, 11 Nov 2019 10:18:24 -0500 by BPWheeler

[springboot development monomer web shop] 5. User login and homepage display

User login and front end display User login In the previous article, we implemented the function of user registration and authentication, and then we continued to implement its login, as well as the information to be displayed on the page after successful login. Next, let's write the code. Implement service Add user login method in com.liferu ...

Posted on Mon, 11 Nov 2019 08:54:55 -0500 by fragger

Spring Data Jpa best practices

Preface The goal of the Spring Data Jpa framework is to significantly reduce the amount of boilerplate code required to implement the data access layers of various persistent stores. The central interface in the Spring Data Jpa Repository abstraction is Repository. It needs domain entity class and domain entity ID type as type parameters for ma ...

Posted on Mon, 11 Nov 2019 07:54:44 -0500 by raman