What java does by default

This is a basic class source file public class Demo { public static void main(String[] args) { System.out.println("HelloWorld!"); } } Decompiled # javap -c Demo Compiled from "Demo.java" public class Demo extends java.lang.Object{ public Demo(); Code: 0: aload_0 1: invokespecial #1; //Method java/lang/Object."<i ...

Posted on Sun, 19 Apr 2020 08:33:07 -0400 by callmubashar

Spring learning tour (2) create the spring framework java Web project quickly

Compiler: eclipse 1) Create Web project: Spring Web HelloWorld 2) Import the required jar package: 3) Create entity class: the same as the previous blog 4) Create the configuration file hellobean.xml. Same as the previous blog Note, however, that the location of the configuration file in this project is in the WebContent directory. 5) Instanti ...

Posted on Fri, 03 Apr 2020 15:51:34 -0400 by CrusaderSean

Practical application of filters (encoding, sensitive words, compression filters)

Article Directory Preface Coding filter Develop filters Enhance request object Sensitive Word Filter Compressed Resource Filter Enhanced response object Filter test Summary Preface The definition of filters and the simple use of filters have been preliminarily introduced in the previous chap ...

Posted on Wed, 01 Apr 2020 12:52:51 -0400 by newjsguy

Filter, listener, interceptor

Connection among filter, listener and interceptor   Filter Mainly used to preprocess user's request Through Filter technology, we can manage all resources of Web server (such as jsp, html, static resource file, etc.) and intercept them, so as to realize some special functions (such as implement ...

Posted on Tue, 17 Mar 2020 04:13:08 -0400 by abushahin

SpringMVC error: HTTP Status 405 - JSPs only permit GET POST or HEAD

In a recent article in the JavaEE series, there were some problems writing REST-style URL s for Spring MVC. Here is some code. index.jsp page code: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html> <html> <head> & ...

Posted on Sat, 14 Mar 2020 20:30:15 -0400 by DrTom

00 01 Ajax learning II of Java Web

Article directory 1 ajax first example: helloworld 2 ajax second example: send POST request 3 ajax example 3: whether the user name is registered 4 ajax example 4: the response content is xml 5 the fifth example of Ajax: provincial and municipal linkage 1 ajax first example: helloworld Server co ...

Posted on Wed, 11 Mar 2020 03:52:18 -0400 by busnut

Operands and forms of components of JavaScript

Article directory 1. Components of JavaScript 2. Operate BOM object 1).Window 2) . navigator 3).screen 4).location 5).document 6).history 3. Operate DOM object 1) . get dom node 2) . update node 3) . insert node 4) . delete node 4. Operation form 1. Components of JavaScript JavaScript consti ...

Posted on Mon, 10 Feb 2020 10:00:39 -0500 by Kerry Kobashi

Getting started with Spring MVC demo

(1) New Spring project         (2) Add the required jar package spring's 5 + 2: spring-core.jar spring.beans.jar spring-context.jar spring-expression.jar spring-aop.jar     spring-web.jar spring-webmvc.jar (these two jar packages are spring mvc's)     Two web applications: servlet.jar jsp.jar The names of these two packages are various. ...

Posted on Wed, 29 Jan 2020 05:48:07 -0500 by nick314

EL custom function of javaweb

1. What is EL custom function EL custom function is a static method of a java class called in EL expression. This static method needs to be configured in web application before it can be called by EL expression. El custom function can extend the function of El expression and let El expression complete the function that ordinary java program cod ...

Posted on Tue, 10 Dec 2019 16:25:51 -0500 by jkmcgrath

Spring MVC response view

Complete project case: springmvc.zip Catalog   Example In addition to relying on spring webmvc, you also need to rely on Jackson databind (used to transform json data format) <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.9.6</versi ...

Posted on Sun, 08 Dec 2019 19:02:39 -0500 by peDey