Search engine - Solr cluster deployment
Key contents
Three zookeeper nodes are required
Four solr nodes.
Using pseudo distributed to implement solr cluster. Three zookeeper instances and four tomcat instances are required, which can be simulated on a virtual machine. More than 1G memory is recommended for virtual machines.
Solr instance building
Step 1: crea ...
Posted by zorgon on Wed, 01 Apr 2020 19:42:14 -0700
Integrating Spring Session with Redis
There are so many specific features of Spring Session. The specific content can be learned from the document. The author makes a summary. The features of Spring Session include but are not limited to the following:
Use GemFire to build httpSession of C/S architecture (not concerned)
Use the third-party warehouse to realize the cluster sessi ...
Posted by ron814 on Wed, 01 Apr 2020 06:13:29 -0700
Spring boot -- loading in the preparation stage of spring application
Learning notes are notes made according to my own needs and understanding after learning the core technology of Spring Boot 2.0 in-depth practice by brother Ma on mooc.com.
Preface
Spring boot is built based on spring, that is to say, Spring Framework is the basis of learning spring boot well.
First of all, the premise of und ...
Posted by NiallThistle on Sun, 22 Mar 2020 09:18:17 -0700
spring mvc import resource path problem [the simplest but also the most deadly]
There are two ways to write in the import resource path
A classpath, a classpath*
So what's the difference between the two?
1.**classpath: * * only find files in your class path;
2. * * callsspath *: * * not only includes class path, but also includes jar file (class path) for searching, * * * classpath *: * * * is very important for multi ...
Posted by superdezign on Tue, 17 Mar 2020 08:25:54 -0700
Building simple application services of solr
Environment: Centos7 + jdk1.8 + solr-7.7.2 + tomcat-8.5.43
Centos7 download address: https://www.jianshu.com/p/a63f47e096e8
jdk1.8 download address: https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
solr-7.7.2 download address: http://archive.apache.org/dist/lucene/solr/
tomcat-8.5.43 download address: http://archive.apache.or ...
Posted by renegade44 on Mon, 16 Mar 2020 01:26:27 -0700
Request other functions
Article directory
1, General way to get request parameters
2, Request forwarding
3, Shared data:
4, Get ServletContext
1, General way to get request parameters
The following methods can be used to get the request parameters in both get and post request modes
(1) String getParameter(String name): ...
Posted by Jennie on Fri, 13 Mar 2020 01:10:35 -0700
Servlet series learning
1, ServletContext class
(1) , what is a ServletConfig object
ServletContext is an interface
ServletContext is a domain object
For a web project, Tomcat will only create a ServletContext object.
(2) , what is a domain object
**Domain object is an object that can be stored like a Map collection (d ...
Posted by cypr on Wed, 11 Mar 2020 04:58:08 -0700
The JVM custom class loader loads all classes and jar s under the classPath specified
1, Classloader type in JVM
From the perspective of Java virtual machine, there are only two different classloaders: boot classloader and other classloaders.
1. Bootstrap classloader: This is implemented by c + +, which is mainly responsible for the core api under the JAVA_HOME/lib directory or the jar packaging specified by the - Xbootclasspath ...
Posted by andyd34 on Sun, 08 Mar 2020 00:58:32 -0800
JWT generates token with error: secret key byte array cannot be null or empty
Want to get the most complete and detailed information of the whole network: (1022848328)
JWT generates token with error: secret key byte array cannot be null or empty
java.lang.IllegalArgumentException: secret key byte array cannot be null or empty.
at io.jsonwebtoken.lang.Assert.notEmpty(Asse ...
Posted by seddonym on Sat, 07 Mar 2020 06:09:19 -0800
nginx accesses the project through the domain name (do not receive the project name), cookie loss problem details
Recently, I got a domain name. If I want to use it to directly access the project deployed on Tomcat, I have to add the project name at the beginning. After a short configuration, it succeeded. Visit once and arrive at the landing page. As a result, you can't log in. You have been logging in the inte ...
Posted by bundyxc on Wed, 04 Mar 2020 21:16:34 -0800