Tag:springboot
-
Springboot dynamically modifies log level operations
preface In order to reduce the performance impact of frequent log printing, the log level set in online environment is generally relatively high. When a production problem needs troubleshooting, you may need to appropriately reduce the log level (such as debug) to print more log information to help locate the problem. The traditional practice is […]
-
Java project: Blue Sky Kindergarten Management System (java + springboot + thymeleaf + HTML + Maven + MySQL)
Source code acquisition: download from “resources” on the blog home page! Project introduction The management system of Lantian kindergarten is divided into three roles: administrator, parent and teacher. The administrator role has the following functions: System management – user management, page management, role management, Campus management – teacher management, salary management, material management, menu management […]
-
Spring boot integrates redis to realize distributed lock
Redis FAQ: Cache penetration: there is no cached null value in the program; When a large number of requests get a nonexistent data, because there is no null value cached in the cache, a large number of requests directly access the database, and the pressure on the database increases sharply, resulting in penetration problems! Solution: […]
-
Spring boot integrates redis, and recommends integration and use cases (version 2021)
Background: the newcomers integrate redis with springboot for the first time. Most people are used to retrieving a configuration from the Internet, and then copy and paste it into the project without knowing why. The configurations searched on the Internet are mixed, but they can’t leave their origin. Because springboot simplifies the configuration required for […]
-
Java project: youmi mall system (java + springboot + HTML + bootstrap + layui + Maven + MySQL)
Source code acquisition: download from “resources” on the blog home page! Project introduction Youmi online shopping experience system 1. The platform has two main functions:(1) Browse the basketball related information provided by the official and certified authors of the platform. The information types include: video, news, comment articles and game results(2) Classification of shopping […]
-
Java8 new feature detailed explanation of the difference between anymatch, allmatch and nonematch in stream stream
1、anyMatch Judge whether any element in the data list meets the preset condition. If yes, return true; otherwise, return false. Interface definition: boolean anyMatch(Predicate<? super T> predicate); Method description: The < predicate > parameter is a boolean type defined in the predicate > interface, and then the result is a Boolean value after verification. Anymatch […]
-
Java project: library management system (java + springboot + HTML + thymeleaf + bootstrap + Maven + MySQL)
Source code acquisition: download from “resources” on the blog home page! Project introduction The project is divided into two roles: administrator and reader. The main functions are: 1. Login, logout and password modification2. The main functions of the administrator include: library management, reader management, loan and return management. Add, delete, modify and check book information, […]
-
Using spring boot to expose the problems of Oracle data interface
Create a new spring initializr project 2. POM Replace the Oracle dependency in the XML file with your own Oracle version dependency: customary: current: <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0.1.0</version> </dependency> 3. Edit application yml spring: datasource: driver-class-name: oracle.jdbc.driver.OracleDriver url: jdbc:oracle:thin:@192.168.21.200:1521:orcl username: alisa password: alisa 4. Create an instance class – userinfos java: package cn.alisa.myspboracle.entity; import java.util.Date; […]
-
Redis’s simple notes
catalogue 1、 Redis transactions 2、 Java connection redis: jedis 2.1 connection 2.2 transactions 3、 Spring boot integrates redis 3.1 import dependency 3.2 configuration connection 3.3 creating redisconfig 3.4 redisutil: encapsulate redisconfig 4、 Redis Conf file 5、 Persistence of redis 5.1 RDB (default) technological process Trigger mode Recover RDB files Persistence settings Advantages and disadvantages 5.2 […]
-
Java practical project: shangyitong, problems and bugs encountered in the online reservation and Registration Platform (continuous improvement)
Problems encountered by shangyitong (if you have any problems, you can leave a message in the comment area and discuss them together!!!) Source code address:https://gitee.com/code-to-xiaobai/yygh_parent/tree/master catalogue 1. Redis and mongodb visualization software! 2. Version issue: 3. Cross domain issues: 4. Page Jump bug 5. Why cache? 6. Springboot cannot connect to redis in the virtual […]
-
Publish and subscribe to redis in springboot
Article catalogue Publish and subscribe to redis Integration into springboot integration testing In general, we use redis most often as a caching middleware, and redis can also be used as a message queue, but this is not the strength of redis, but it can be used if necessary. Publish and subscribe to redis Integration into […]