java tutorial

start

hello world 程序员

java毕竟是c++的亲儿子,所以还是有一个main入口的。

Hello.java

public class Hello{
    public static void main(String [] args){
        System.out.println("hello world");
    }
}
$:javac Hello.java
$: java Hello
hello world

java要把环境变量写入JAVA_HOME,JRE_HOME

JDK JRE JVM

JDK is an acronym for Java Development Kit.It physically exists.It contains JRE + development tools.

JRE is an acronym for Java Runtime Environment.

JVM (Java Virtual Machine) is an abstract machine.

tomcat

/usr/lib/systemd/system/tomcat.service服务文件

apache-tomcat

sh startup.sh or startup.bat(windows)

structs2Spring 是java的两个MVC框架

jasper

jasper是tomcat中使用的JSP解析引擎

structs漏洞验证

jdk, apache-tomcat, structs2