Java Operating Redis -- Jedis's API

Let's first look at how java links redis Maven: <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>3.0.1</version> </dependency> Java: public static void ma ...

Added by watsmyname on Fri, 04 Oct 2019 07:22:14 +0300

Spring 5 Source Resolution 2-register Method Register Configuration Class

The last time I talked about this() method, let's look at register (annotated Classes); method. // New Annotation Config Application Context (AppConfig. class); source code public AnnotationConfigApplicationContext(Class<?>... annotatedClasses) { //Call the default parameterless constructor, which has a lot of initialization logic ...

Added by harsh00008 on Fri, 04 Oct 2019 04:21:47 +0300

Kafka Initial Learning--Kafka Transaction Support

1. Implementing kafka transaction by spring annotation 1. Add Configuration to the Configuration Class in the previous article /** * The following three methods are used for management * Configure Kafka Transaction Manager, which is the transaction management class provided by Kafka to us. We need t ...

Added by jaimitoc30 on Fri, 04 Oct 2019 03:06:45 +0300

HUAWEI 2019 school written examination - logical calculation

<!-- TOC --> HUAWEI 2019 school written examination - logical calculation Title Description Input description For example: Example 1 input output Example 2 input output Sample code <!-- /TOC --> HUAWEI 2019 school written examination - logical calculation Title Description Commonly used logical operations are And (expres ...

Added by trufla on Thu, 03 Oct 2019 23:34:26 +0300

Execution results in JdbcTemplate contain embedded entities

Execution results in JdbcTemplate contain embedded entities One way Mode two Mode three When using JDBCTemplate, you will encounter situations where other entities are embedded in the entity, so that fields in the entity will not be assigned. There are three ways to solve this problem, each of whi ...

Added by crazykid on Thu, 03 Oct 2019 22:49:39 +0300

Jenkins and GitLab Integrated Automated Testing and Deployment Detailed Tutorial-Building Maven Project

When Jenkins and the services that need to be published are on the same server, you want to copy the Jar package to the specified folder and publish it. Configuration and Jenkins and GitLab Integrated Automated Testing and Deployment Detailed Tutorial - Building Maven Project (1) It's slightly differ ...

Added by vtroubled on Thu, 03 Oct 2019 20:26:21 +0300

spring-boot-plus Operations and Maintenance Deployment

Online deployment Packaging environment is prod mvn clean package -Pprod Packed catalogue cd target/spring-boot-plus-1.2.0.RELEASE-prod Setting up on-line database, Redis and other sensitive information vim spring-boot-plus/config/application-prod.yml Startup service sh spring-boot-plus/bin/startup.sh start log [root@springbootplus spring-boot- ...

Added by tobimichigan on Thu, 03 Oct 2019 20:09:38 +0300

Java Self-learning - Numbers and String Strings

String in Java Example 1: Creating strings Strings are combinations of characters. In Java, strings are a class, so all strings we see are objects. Common string creation methods: Whenever a literal value appears, the virtual machine creates a string Call String's constructor to create a string object String splicing with + plus sign also cre ...

Added by gofeddy on Thu, 03 Oct 2019 18:20:42 +0300

Struts completes input verification manually based on validateXxx method

One view 1registForm.jsp <%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %> <%@taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x ...

Added by Maugrim_The_Reaper on Thu, 03 Oct 2019 17:24:57 +0300

Using EasyPoi to export a large amount of data to Excel

Using EasyPoi to export a large amount of data to Excel This project is managed by maven. The dependencies of EasyPoi in the pom file are: <! - easypoi dependence - > The role of easypoi parent package is well known to all. 2.easypoi-annotation basic annotation package, whi ...

Added by dabas on Thu, 03 Oct 2019 12:23:41 +0300