case multi-branch statement
The structure of case statement:
Execute different command lines for different values of variables
case variable value in
Command Sequence 1
Command Sequence 2
Default command sequence
Character type recognition:
Prompt the user to enter a character ...
Posted by merrydown on Sun, 13 Oct 2019 18:14:14 -0700
Project Host Configuration Based on Virtual Directory
In Tomcat, the default virtual directory is webapps, but for the project location, we can also set up Context to achieve, a Host can set up more than one Context;
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xm ...
Posted by Wldrumstcs on Sun, 13 Oct 2019 11:27:47 -0700
Again, data domains, Shiro, and connectors for secure data are like jdbc connecting to databases; getting information about authentication and authorization through realm
Shiro retrieves security data from Realm
The default home realm:
idae looks at realm inheritance relationships with default implementations a ...
Posted by Gappa on Sun, 13 Oct 2019 11:11:33 -0700
In the following example, Pod contains two containers: tomcat and busybox. Volume "app-logs" is set at the Pod level for tomcat to write log files to and busybox to read log files.
# cat pod-volume-applogs.yaml
- name: tomcat
image: tom ...
Posted by kshyju on Sun, 13 Oct 2019 10:33:33 -0700
Assignment: Return the name of the student who scored the highest mark for each course.
Return the names of the students for each course and for the highest score
Posted by nephish on Sun, 13 Oct 2019 10:23:26 -0700
JSTL tag library
JSTL Standard Label Library;
JSTL is used to simplify JSP development and improve code readability and maintainability.
JSTL is defined by SUN(Oracle) and implemented by Apache Tomcat team.
Reference to JSTL Core Library
Core is the most important tag library of JSTL, which provides the basic functions of JSTL.
<%@ taglib ...
Posted by farel on Sat, 12 Oct 2019 12:10:36 -0700
Maven's Core Concept
Maven coordinates consist of main components (GAV) to determine the location of a jar package groupId: Defines the current Maven organization name artifactId: Define the actual project name Version: Defines the current version of the current project
2. Finding coordinates
Visit http://www.mvnrepository.co ...
Posted by Killswitch on Sat, 12 Oct 2019 10:36:01 -0700
1.1 Install gcc gcc-c++ (If new environment is not installed, please install first)
$ yum install -y gcc gcc-c++
1.2 Installation of the PCR E Library
$ cd /usr/local/
$ wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz
$ tar -zxvf pcre-8.36.tar.gz
$ cd ...
Posted by reub77 on Fri, 11 Oct 2019 12:05:42 -0700
Links to the original text: http://www.cnblogs.com/NewIdea/p/deploy-wordcount-topology.html
In the last blog, we passed Storm.Net.Adapter Create a Storm Topology - word count written in Csharp. This article describes how to write Java-s ...
Posted by phynias on Fri, 11 Oct 2019 10:46:43 -0700
Tomcat Source Analysis I: Compiling Tomcat Source Code
1 Content Introduction
In the previous "Servlet and Tomcat Running Example" article, we will show you how to deploy Servlet application in Tomcat. This article will start Tomcat source code analysis journey on the basis of the above, I will analyze the starting process and operati ...
Posted by [JayZ] on Fri, 11 Oct 2019 01:01:54 -0700