Spring JdbcTemplate & Declarative Transactions

Basic use of JdbcTemplate 01 - Basic Use of JdbcTemplate - Overview (Understanding) JdbcTemplate is an object provided in spring framework, which is a simple encapsulation of the original tedious Jdbc API objects. The spring framework provides us ...

Posted by whelpton on Thu, 15 Aug 2019 14:09:06 +0200

Spring Cloud Config Distributed Configuration Center

Firstly, the registration center should be established. file-new-module    pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http ...

Posted by stevenye on Tue, 13 Aug 2019 06:15:34 +0200

SpringBoot Two Ways to Simply Integrate Mybatis

rely on Be careful The database connection pool is used here, the Druid is used here, and the Druid is used here is com.alibaba.druid-spring-boot-starter. The starter is provided by a third party. The names of MyBatis and Druid depend on are different from those of other libraries, but the mysql it supp ...

Posted by Good2CU on Mon, 12 Aug 2019 10:29:14 +0200

Summary of Spring Cloud Stream

concept 1,group: There is only one instance consumption in the group. If no group is set, stream automatically creates anonymous and independent groups for each instance -- and each instance consumes them. There is only one instance consumed per group and load balancing is polled. Usually, when binding an application to a given target, it's ...

Posted by selenin on Sun, 11 Aug 2019 16:10:38 +0200

Spring Boot's core 27 annotations, how much do you know?

Guide reading Spring Boot project development has gradually become the mainstream framework in the field of Java application development. It can not only create production-level Spring applications easily, but also easily integrate with the hot micro-service framework Spring Cloud through some annotation configurations. The ...

Posted by antileon on Sun, 11 Aug 2019 12:12:47 +0200

Spring mybatis - ssm framework environment construction (scheme 1)

The SSM framework - S-Spring S-Spring mvc M-mybatis requires the following configuration files to be placed under the resources folder: db.properties is the configuration file of the database connection pool, which has the connection information of the database jdbc: # JDBC jdbc.driverClass=com.mysql.jdbc.Driver jdbc.connectionURL=jdbc: ...

Posted by drepster on Fri, 09 Aug 2019 13:03:55 +0200

Spring Boot 2.x: Integrating Redis, this is enough

[TOC] Introduction to Redis Redis is an open source, non-relational database (NoSQL) written in ANSI C, compliant with the BSD protocol, network support, memory-based and persistent log, Key-Value database, and multilingual API s. Features of Redis All operations of Redis are atomic, meaning they either succeed or fail completely.A single oper ...

Posted by svgk01 on Fri, 09 Aug 2019 03:15:50 +0200

Day11: Spring Integrates Redis Sentinel and Redis Cluster

Part I Spring Integration Redis I. Preparations Introduction Case 1 Master Name host name: mymaster Sentinel: ip: port number import redis.clients.jedis.JedisSentinelPool; public class TestSentinel { @Test public void testSentinel1() { String masterName = "mymaster";//host name Set<St ...

Posted by justsomeone on Thu, 08 Aug 2019 11:41:49 +0200

Java Second Kill System Actual Series ~Integrating RabbitMQ to Achieve Asynchronous Message Sending

Summary: This blog is the eighth in the "Java Second Kill System Practical Series Articles". In this article, we will integrate the message middleware RabbitMQ, including adding dependencies, adding configuration information and customizing injection of related operational components, such as Rabbit Template, etc. Finally, we will ini ...

Posted by ksukat on Thu, 08 Aug 2019 09:45:15 +0200

Java simulates and solves cache penetration

Java simulates and solves cache penetrationWhat is Cache PenetrationCache penetration only occurs in high concurrency, that is, when there are 10,000 concurrent query data, we usually go to redis to query data first, but if there is no such data in redis, then a large part of the 10,000 concurrent data will go to mysql at once. Queried in the d ...

Posted by ditusade on Thu, 08 Aug 2019 09:39:27 +0200