Struts 2 landing interceptor

1. Configure the timeout time of session in web.xml <! -- configure session timeout in minutes -- > <session-config> <session-timeout>180</session-timeout> </session-config> 2. I also post a session tool class here to facilitate obtaining the user information in the session after the successful login. ...

Posted by wafflestomper on Fri, 20 Mar 2020 21:04:38 +0100

Problems encountered in building large data infrastructure components (integration)

Article Directory Hadoop 1. because hostname cannot be resolved 1.1 Cause 1.2 Solution 1.3 Reference Hive 1. Cannot find hadoop installation: $HADOOP_HOME or $HADOOP_PREFIX must be set or hadoop must be in the path 1.1 Solution 2. Unable to instantiate org.a ...

Posted by a6000000 on Tue, 17 Mar 2020 02:31:41 +0100

Talk about MySQL plugin of skywalking

order This paper mainly studies MySQL plugin of skywalking skywalking-plugin.def skywalking-6.6.0/apm-sniffer/apm-sdk-plugin/mysql-8.x-plugin/src/main/resources/skywalking-plugin.def mysql-8.x=org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define.ConnectionImplCreateInstrumentation mysql-8.x=org.apache.skywalking.apm.plugin.jdbc.mysql.v8.define ...

Posted by gj6kings on Sun, 15 Mar 2020 04:13:11 +0100

Add monitoring host and service in nagios

Nagios add monitoring host Operation steps: 1. Modify the main configuration file of Nagios to separate the configuration of the server from the configuration of the monitoring items 2. Add monitoring host related information profile 3. Check configuration file syntax for correctness 4. Reload config ...

Posted by chuspy on Fri, 13 Mar 2020 10:45:33 +0100

Introduction to Zookeeper and construction of stand-alone and cluster environment

1. Introduction to zookeeper Zookeeper is a distributed service framework, which used to be a sub project of Apache Hadoop. Now it is an independent top-level project of Apache. It is mainly used to solve some data management problems often encountered in distributed applications, such as unified nami ...

Posted by tymlls05 on Fri, 13 Mar 2020 04:08:03 +0100

shiro framework and spring integration in my java history

Any framework needs to use pom dependency first... Configure Shiro related information in shiro.xml configuration file Because securityManager needs realm package com.ssq.realm; import com.ssq.pojo.User; import com.ssq.service.RoleService; import com.ssq.service.UserService; import org.apache.shiro.au ...

Posted by Kuraden on Wed, 11 Mar 2020 10:05:20 +0100

Maven scaffolding best practices

Background and objectives To develop a new project, we need to build a new project. We often copy and paste configuration from other existing projects. It is inevitable that we will step into a hole because of some detailed configuration. Especially for new employees, when they don't know the compan ...

Posted by Fabio9999 on Mon, 09 Mar 2020 09:50:01 +0100

Push mode integrates Flume and Spark Streaming

1. architecture 2.Flume configuration Create a new configuration file under $flume \ home / conf: flume \ push \ streaming.conf The configuration idea is as follows: source select netcat and configure the host name and port Select avro for sink, and configure the host name and port channel s ...

Posted by phithe on Fri, 06 Mar 2020 12:11:34 +0100

docx4j in depth learning

I. Preface       In my work, I often encounter the processing and operation of word, the most commonly used is the export of word documents, and I often encounter a variety of complex formats of word. At the beginning, I used poi, but I struggled for a period of time, modfa, instead of using docx4j, which is very powerful. Well ...

Posted by bogdan on Fri, 06 Mar 2020 05:31:58 +0100

Java log introduction - commons logging

Apache Commons Logging(JCL) provides a simple log abstraction that allows developers to use specific log implementations. JCL can use other log implementations, including Log4J, Avalon LogKit(Avalon's log framework), and JDK logging(JUL). This paper mainly introduces the simple use of JCL, the software version used in this paper: Java 1.8.0, co ...

Posted by jakobdoppler on Fri, 06 Mar 2020 05:11:47 +0100