Adding, deleting, modifying and querying solr index by springboot
solr version: 8.x
springboot version: 1.5.6
1. To prepare the springboot project, pom.xml needs to introduce the following jar package
<properties>
<project.final.name>htsolr</project.final.name>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEnc ...
Posted by j007w on Tue, 24 Dec 2019 02:11:39 -0800
Interceptor in struts 2
Interceptor (interceptor)
1, Interceptor overview
Interceptor is one of the most powerful features of struts 2. It is a mechanism that allows users to do some processing before Action execution and after Result execution.
Interceptors are conceptually the same as servlet filters or JDK proxy classes. Interceptors allow for crosscutting, separa ...
Posted by adamgeorge on Tue, 24 Dec 2019 00:50:35 -0800
UDF Writing for Struct Complex Data Type and GenericUDF Writing
1. Background introduction: With the upgrade of MaxCompute version 2.0, the data types supported by Java UDF have expanded from BIGINT, STRING, DOUBLE, BOOLEAN to more basic data types, as well as complex types such as ARRAY, MAP, STRUCT, and Writable parameters.Java UDF uses a method of complex data types, STRUCT corresponds to com.aliyun.odps ...
Posted by mnewbegin on Mon, 23 Dec 2019 19:19:12 -0800
Talk about rocketmq's ScheduleMessageService
order
This paper mainly studies the schedule message service of rocketmq
ScheduleMessageService
rocketmq-all-4.6.0-source-release/store/src/main/java/org/apache/rocketmq/store/schedule/ScheduleMessageService.java
public class ScheduleMessageService extends ConfigManager {
private static final InternalLogger log = InternalLoggerFactory.getLo ...
Posted by stephfox on Mon, 23 Dec 2019 11:02:02 -0800
Password encryption and microservice authentication JWT -- login function
[TOC]
Preface
I wrote an article before:< Detailed instruction of JWT for password encryption and microservice authentication>
Practical operation (practice example)
pom(common), add jwt dependency on the original basis
<dependencies>
<!--lombok-->
<dependency>
<groupId>org.projectlomb ...
Posted by jsinker on Mon, 23 Dec 2019 08:22:10 -0800
Pair pair in java
Application scenario:
When it comes to key value pairs, we usually use Map mapping to process them. At this time, the key is equivalent to a description or reference of value, and the specific information is saved in value. We can get the corresponding value through key. But when both key and value store specific information, ...
Posted by Bounty on Mon, 23 Dec 2019 07:53:37 -0800
Java implementation of Word/Pdf/TXT to html
introduction:
Recently, the company is working on an education, training, learning and online examination project. I am mainly engaged in the online course module, mainly doing the course classification, course, courseware creation and online learning and statistical functions, because courseware involves many types, such as video, audio, graph ...
Posted by brianjw on Mon, 23 Dec 2019 07:17:51 -0800
Docker Series 3:Docker Mirror Details
1. Introduction to Docker Mirrors
1. Introduction of Mirror Composition
Hierarchical, with bootfs at the bottom and rootfs above
bootfs can be of type btrfs, aufs, lxc and require a kernel, but this kernel is only for user controls that launch containers
rootfs is represented as a root file system, which contains many files and directori ...
Posted by revdev on Sun, 22 Dec 2019 19:15:54 -0800
Linux MySQL prompt: The server quit without updating PID file problem solving
The previous testing machine used by the company did not empty the original data, resulting in multiple environment versions of mysql, php, nginx, and apache. Because the php version is 5.2, it is too low for testing. I installed the integrated environment directly for the convenience of testing.
By checking mysql logs and l ...
Posted by johnb352 on Sun, 22 Dec 2019 10:55:54 -0800
Installing maven and nexus in linux
Installing maven in linux
Download decompression
wget -c http://apache.claz.org/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
tar -zxvf apache-maven-3.5.4-bin.tar.gz
Import environment variables
Open file
vi /etc/profile
export MAVEN_HOME=/usr/local/apache-maven-3.5.4
export MAVEN_HOME
export PATH=$PATH:$MAV ...
Posted by woolyg on Sat, 21 Dec 2019 13:07:22 -0800