current location:Home > Technical Articles > Backend Development
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Operations and maintenance asked me to optimize the SpringBoot startup speed, and this is what I did!
- SpringBoot is undoubtedly the largest framework for Java back-end development. Based on SpringBoot, there is a complete tool chain and various starters. For daily business development, it can be said that the wheels are complete. However, with the popularity of microservices and the cloud-native era, SpringBoot applications have exposed some problems, the most prominent of which are: slow startup applications, memory usage, and multi-cloud native applications that have relatively high startup speed requirements. When horizontal expansion is required, these new instances must be started within a short enough time to process new requests as quickly as possible. Cloud-native applications require as few resources as possible to run. Reducing the resources occupied by a single instance as much as possible means that
- Safety . spring-boot 1806 2023-06-08 18:52:31
-
- Heterogeneous system integration and data integration technology in Java
- With the development of big data and cloud computing technology, enterprises and organizations are faced with the challenges of integration and data exchange of multiple heterogeneous systems. In this context, Java's heterogeneous system integration and data integration technology has been widely used and developed. This article will discuss and introduce the concepts of heterogeneous system integration and data integration, the principles and applications of heterogeneous system integration and data integration in Java, and the advantages of heterogeneous system integration and data integration in Java. 1. The concepts of heterogeneous system integration and data integration Heterogeneous systems refer to different hardware
- javaTutorial . spring-boot 1696 2023-06-08 08:34:29
-
- Redis cache example code analysis
- 1. Introduction 1. Scenario Since the data dictionary does not change very frequently, and the system accesses the data dictionary more frequently, it is necessary for us to store the data in the data dictionary in the cache to reduce database pressure and improve access speed. Here, we use Redis as the distributed cache middleware of the system. 2. RedisTemplate In the SpringBoot project, SpringDataRedis is integrated by default. SpringDataRedis provides a very convenient operation template for Redis, RedisTemplate, and can automatically manage the connection pool. 2. Introduce Redis1 and integrate the Redisservice-base module into the project.
- Redis . spring-boot 1496 2023-06-03 20:37:56
-
- How SpringBoot uses AOP+Redis to prevent repeated submission of forms
- Configure Redis1. Add Redis dependency org.springframework.bootspring-boot-starter-data-redis2. Add redis configuration information redis:host:127.0.0.1port:6379database:0password: #Connection timeout timeout:10s Configure AOP1. Custom annotations /***Annotations to prevent repeated submission of forms*/@Target(ElementType.METHOD)//The annotation targets the method @Retention(RetentionPolicy.RUNTI
- Redis . spring-boot 1101 2023-06-03 18:10:04
-
- How does Java SpringBoot operate Redis?
- Redis1. Add redis dependency. springBoot provides a component package for Redis integration: spring-boot-starter-data-redis, which depends on spring-data-redis and lettuce. In addition, there are two small details here: in the SpringBoot1.x era, the bottom layer of spring-data-redis used Jedis; in the 2.x era, it was replaced by Lettuce. Lettuce depends on commons-pool2org.springframework.bootspring-boot-starter-data-r
- Redis . spring-boot 605 2023-06-03 18:01:45
-
- How to solve the problem that springboot cannot access the file after reading it into a jar package
- Springboot reads the file, but cannot access the latest development after packaging it into a jar package. There is a situation where springboot cannot read the file after packaging it into a jar package. The reason is that after packaging, the virtual path of the file is invalid and can only be accessed through the stream. Read. The file is under resources publicvoidtest(){Listnames=newArrayList();InputStreamReaderread=null;try{ClassPathResourceresource=newClassPathResource("name.txt");Input
- javaTutorial . spring-boot 2615 2023-06-03 16:38:18
-
- What are the two methods of springboot hot deployment?
- The difference between springboot and springmvc: springboot has embedded tomcat, Jetty and Undertow containers, which can be run directly without deployment; springboot automatically configures, reducing a large number of configurations of xml files; reducing the complexity of project construction. SpringMVC is based on Servlet The MVC framework mainly solves the problems of WEB development, because Spring's configuration is very complex, and various XML, JavaConfig, and hin are cumbersome to process. Therefore, in order to simplify the use of developers, Springboot was creatively launched. Conventions are better than configurations, which simplifies the use of spring.
- javaTutorial . spring-boot 745 2023-06-03 11:51:27
-
- How to package and publish SpringBoot applications
- 1. Create a project (example-fast) Create a WEB project example-fast based on SpringBoot. 2. Compilation and packaging 2.1 uses the IDEA integrated Maven environment to compile and package the SpringBoot project, which is super easy2.2mvn command packaging #mvnclean clean compilation #install packaging #-Dmaven.test.skip=true skip unit test #-Pdev specified dev configuration mvncleaninstall-Dmaven.test.skip=true-Pdev3. Apply the evolution of release 3.1 one-line command to run SpringBo
- javaTutorial . spring-boot 1198 2023-06-03 11:13:37
-
- How to build SpringBoot+MyBatisPlus rapid development scaffolding
- Let’s talk about the mall-tiny project. Some friends may not understand this scaffolding yet. Let’s talk about it first! Project Introduction mall-tiny is a rapid development scaffolding based on SpringBoot+MyBatis-Plus. It currently has 1100+Stars on Github. It has complete permission management functions, supports using the MyBatis-Plus code generator to generate code, and can be connected to the Vue front-end of the mall project, ready to use out of the box. Project Demonstration The mall-tiny project can be seamlessly connected to the mall-admin-web front-end project, and the front-end and back-end separation scaffolding can be transformed in seconds. Since the mall-tiny project only implements basic permission management functions, the front-end
- javaTutorial . spring-boot 2011 2023-06-03 09:28:14
-
- How Spring Boot integrates Kafka
- Step 1: Add dependencies Add the following dependencies in pom.xml: org.springframework.kafkaspring-kafka2.8.0 Step 2: Configure Kafka Add the following configuration in the application.yml file: sping:kafka:bootstrap-servers:localhost: 9092consumer:group-id:my-groupauto-offset-reset:earliestproducer:value-serializer:org.apache.kafka.common
- javaTutorial . spring-boot 1490 2023-06-02 14:18:35
-
- How Java uses Lettuce client to execute commands in Redis master-slave mode
- 1The concept of redis master-slave replication In a multi-machine environment, a redis service receives write commands. When its own data and status change, it copies them to one or more redis. This mode is called master-slave replication. In redis, use the command salveof to let the redis executing the command copy the data and status of another redis. We call the main server master and the slave server slave. Master-slave replication ensures that data will be replicated when the network is abnormal and disconnected. When the network is normal, the master will keep the slave updated by sending commands. The updates include client writes, key expiration or eviction and other network abnormalities. The master is connected to the slave.
- Redis . spring-boot 1395 2023-05-31 21:05:39
-
- SpringBoot+Redis Bloom filter prevents malicious traffic from penetrating the cache
- The details are as follows: What is malicious traffic penetration? Assume that our Redis contains a set of user's registered emails, with email as the key, and it corresponds to some fields of the User table in the DB. Generally speaking, when a reasonable request comes in, we will first determine whether the user is a member in Redis, because reading data from the cache returns quickly. If this member does not exist in the cache, then we will query it in the DB. Now imagine that there are tens of millions of requests from different IPs (don’t think there are none, we encountered them in 2018 and 2019, because the cost of attack is very low) to access your website with a key that does not exist in Redis. Let's imagine this: the request arrives at the web server
- Redis . spring-boot 1619 2023-05-30 08:16:05
-
- How to implement springboot integrated redis sentinel master-slave
- 1. Environment springboot2.3.12.RELEASEJDK1.8IntelliJIDEA development tool Redis sentinel master-slave construction 2. POM file pom file Others are ignored, only the dependencies related to redis are displayed org.springframework.bootspring-boot-starterorg.springframework.bootspring-boot- starter-weborg.springframework.bootspring-boot-starter-data-redisorg.apache.c
- Redis . spring-boot 1339 2023-05-28 16:07:06
-
- How to customize Starter in springboot
- Customize Starter naming rules. Pay attention to the naming rules of artifactId. Spring official Starter is usually named spring-boot-starter-{name} such as spring-boot-starter-web. Spring official recommends that unofficial Starter naming should follow {name}-spring- The format of boot-starter, such as mybatis-spring-boot-starter. The artifactId of the project created here is helloworld-spring-boot-starter development Starter step creation S
- javaTutorial . spring-boot 1672 2023-05-28 15:25:46
-
- How SpringBoot integrates Redis cache verification code
- 1. IntroductionRedisisanopensource(BSDlicensed),in-memorydatastructurestore,usedasadatabase,cache,andmessagebroker.Translation: Redis is an open source in-memory data structure storage system, which can be used as: database, cache and message middleware. Redis is an open source, high-performance key-value database developed in C language. The officially provided data can reach **100000+** QPS. QPS (Queries-per-second), the number of queries per second. (
- Redis . spring-boot 754 2023-05-27 21:16:23