spring

Spring Boot integrates WebSocket (native annotations and Spring encapsulation)

Spring Boot integrates WebSocket This chapter will introduce the two main ways for Spring Boot to integrate WebSocket: native annotations and Spring encapsulation. Online WebSocket testing tool Spring Boot 2.x practice case (code warehouse) Native annotations Introduce dependencies <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-webs... »

[SpringBoot Series] How SpringBoot integrates SSMP

Article directory Implementing SSMP integration based on SpringBootIntegrate JUnitIntegrate MyBatisIntegrate MyBatis-PlusIntegrate Druid Implementing SSMP integration based on SpringBoot The reason why SpringBoot is easy to use is that it can integrate other technologies easily and quickly. Here we first introduce the integration of four technologies: Integrate JUnitIntegrate MyBatisIntegrate MyBa... »

Mockito detailed tutorial

Preface Unit testing (UT)After working for a while, I really realized the importance of code quality. Although it is developed in a hurry, it seems to be very fast on the surface, but it creates many hidden dangers for subsequent maintenance and expansion.As a programmer who wants to be professional but is not yet professional, by building unit test cases with relatively high coverage, the quality... »

DataSourceTransactionManager Summary

DataSourceTransactionManager Summary 1.Spring framework configuration transaction1.1 Schema-based automatic proxy1.2 Use @transactional annotation 2.SpringBoot framework configuration transaction2.1@Transactional annotation2.1.1SpringBoot automatically assembles the transaction manager 2.2SpringBoot multiple data source configuration 2.2.1 Specify a transaction manager for the data source2.2.2 Spe... »

[ElasticSearch Series 6] Use QueryBuilders and NativeSearchQuery to implement various operations of es database on lists {multiple conditions, paging, sorting, highlighting (with highlighting tool class), etc.}

Preface We have integrated spring and elasticsearch before. Based on the previous steps, we will use es data to complete our project list and a series of query paging, sorting and highlighting functions.  [ElasticSearch Series 4] spring & elasticSearch (linux) integration [picture explanation]_Mengxiaocui’s blog-blog  introduce Let’s first take a look at the renderings of using es data t... »

[Detailed Graphical Explanation] Build Spring Authorization Server + Resource + Client Complete Demo

A complete Demo, including authentication end, resource end, and client; using the latest technology. Thank you very much to the fat guy who is a coder. I have carefully read many of his articles. A lot of the logic and code in this project originated from him. If you want to learn OAuth2 in depth, it is strongly recommended to follow Fat Brother. 1. Project Overview 1.1. Overview Server + Resourc... »

Details of automotive project based on SSM and Shiro

“Banwo Auto Backstage Project” course details 1. Project course details 1. Course introduction This set of courses is mainly based on Java core technologies such as Spring, SpringMVC, Mybatis, Vue, js, MySQL, Shiro, BootStrap, Echarts, POI, Druid, MD5 encryption, reverse engineering, PageHelper paging, etc., to implement a car based on the SSM framework Information background managemen... »

springboot uses redis

springboot uses redis redis-service.exe: server, do not close after startingredis-cli.exe: client, access data in redisredisclient-win32.x86_64.2.0.jar: redis graphical interface client, the execution method is to execute in the directory of this file java -jar redisclient-win32.x86_64.2.0.jar Or click in the directory of this jar package to execute it directly. Click server, click add, and set th... »

Spring source code analysis

Spring source code Spring’s execution process:   BeanDefinitionReader is a simple interface that is used to read the contents of Spring configuration files and convert them into BeanDefinition. - PropertiesBeanDefinitionReader: It is a concrete implementation class that can read Bean definition information from the properties file. - XmlBeanDefinitionReader: specific implementation class that can ... »

JSON data transfer parameters

Overview As we said before, the more popular development method now is asynchronous calling. The front and backends are exchanged asynchronously, and the transmitted data usesJSON,So if the front end sends JSON data, how should the back end receive it? For JSON data types, we have three common types: json ordinary array ([“value1”, “value2”, “value3”,…])json obj... »

Page 1 of 28123»