House rental and sale information system Complete code download address: House rental and sales information system Software Introduction This software is a house rental and sale information system based on Vue and SpringBoot. It mainly includes three business lines: house rental, house sale, and house transaction. Developers can use this project Carry out secondary development […]
Tag: spring
Java thread pool ExecutorService and Executors application (Spring Boot microservice)
Records: 476 Scenario: Use ExecutorService to manage Java thread pool in Spring Boot microservice. Use Executors to create a thread pool. Use the Runnable interface implementation class to submit thread tasks to the thread pool for execution. Version: JDK 1.8, Spring Boot 2.6.3. 1. Thread and thread pool basics JDK comes with thread and thread […]
Hibernate + Springboot implements the @Filter filter to automatically add conditional filtering. How to implement sprinboot multi-tenancy (shared table, by adding tenant_id)
Hibernate + Springboot implements @Filter filter to automatically add conditional filtering After three days and three nights of torture, I finally solved this requirement. First of all, this requirement is generally implemented through annotations. So the first step is to write an annotation by hand: @Target({<!– –>ElementType.PARAMETER, ElementType.METHOD})//The target location for annotation placement, METHOD can […]
springboot+dubbo+nacos implements microservice architecture with front-end and backend separation, springboot microservice architecture, dubbo microservice architecture, and nacos configuration center.
I will write about a microservice architecture I built this year as a sharing. If you want to use it but don’t understand anything, you can send a private message or comment. I will reply in time when I see it. If you have any better ideas that can improve my shortcomings, you are more […]
SpringBoot-Call external interface (three ways)
Method 1: Use original httpClient request @RequestMapping(“/submit/{documentId}”) public String submit1(@PathVariable String documentId) throws ParseException {<!– –> //Convert the data to be sent into a json format string Map<String,Object> map = task2Service.getMap(documentId); String jsonStr = JSON.toJSONString(map,SerializerFeature.WRITE_MAP_NULL_FEATURES,SerializerFeature.QuoteFieldNames); JSONObject jsonObject = JSON.parseObject(jsonStr); JSONObject sr = task2Service.doPost(jsonObject); return sr.toString(); } Use native httpClient to call external interface public static […]
SpringBoot integrates Netty
Introduction Netty is a Java-based open source network application framework that provides high-performance, asynchronous event-driven network programming capabilities. Netty is designed to help developers build high-performance, high-reliability network applications. Netty provides a simple API and rich functions, which can easily handle various network communication protocols, such as TCP, UDP, WebSocket, etc. Its design concept is […]
Java graduation project takeaway ordering system based on Spring boot+vue merchant-user-rider
Get resources at the end of the article, collect and follow them to avoid getting lost Article directory Project Introduction Technology Introduction Project interface key code Table of contents Project introduction With the rapid development of science and technology, all walks of life are striving to integrate with modern advanced technology and improve their own […]
java spring AOP
AOP Concept AOP is the abbreviation of Aspect Oriented Programming, which means aspect-oriented programming. It is a technology that achieves unified maintenance of program functions through pre-compilation and run-time dynamic agents. What AOP does and its advantages Function: During the running of the program, the function of the method is enhanced without modifying the source […]
Spring IOC container: Master Spring’s core technology
Spring is a very popular and powerful Java development framework that can help us simplify and optimize the development process of Java projects. One of Spring’s core technologies is IOC (Inversion of Control, Inversion of Control), which can achieve decoupling between objects, allowing the creation and management of objects to be completed by the Spring […]
java spring-ioc
If you want to learn spring well, you must always think about it. The essence of spring is a container, a container for Java objects. Java objects are also called bean objects in the spring container. Spring introduction What is a framework Originated from architecture, affiliated with civil engineering, and later developed into the field […]