ajax provincial and municipal linkage

step 1, page <select name="province" id="p"> <option>===Please select a province===</option> </select> <select name="city" id="c"> <option>===Please select a city===</option> </select> 2,ProvinceServlet *Request this Servlet as soon as the page ...

Posted by putraaridana on Sat, 14 Mar 2020 15:28:06 +0100

SpringBoot Integrates AOP Recording Interface Access Logs

Reference resources: SpringBoot Integration AOP AOP AOP is the abbreviation of Aspect Oriented Programming, which means: facet-oriented programming, a technology for unified maintenance of program functions through precompilation and run-time dynamic agents.With AOP, individual parts of business logic ...

Posted by qbox on Fri, 13 Mar 2020 03:40:43 +0100

The beginnings of the rule engine Drools drools

1. Origin of the Rule Engine One day the operation wants to develop a credit strategy to calculate the extra credit amount according to the following rules: The original price of the order is less than 100 without additional points. 100-500 plus 100 points; 500-1000 plus 500 points; 1000 plus 1000 ...

Posted by Ausx on Thu, 12 Mar 2020 05:44:06 +0100

How do I use Servlet and Ajax?

I'm new to Web applications and servlets, and I have the following questions: Whenever I print something in the Servlet and the web browser calls it, it returns a new page containing that text. Is there a way to print text on the current page using Ajax? #1 building I'll show you the entire example of a servlet and the way ajax calls ...

Posted by kof20012 on Wed, 11 Mar 2020 11:15:17 +0100

spring cycle dependency problem

1. The cause of circular dependency - injected through the constructor Let's define two interdependent bean s (injected through the constructor): @Component public class CircularDependencyA { private CircularDependencyB circB; @Autowired public CircularDependencyA(CircularDependencyB circ ...

Posted by headbangerbuggy on Wed, 11 Mar 2020 10:49:06 +0100

Using Spring Cloud Alibaba Nacos to realize service registration and discovery

What is Nacos Nacos is one of the important components in Spring Cloud Alibaba ecosystem, which is used to discover, configure and manage microservices. Nacos provides a set of simple and easy-to-use feature sets, which can quickly realize dynamic service discovery, service configuration, service meta ...

Posted by almora on Tue, 10 Mar 2020 06:28:13 +0100

Three ways to customize attributes for Android DataBindings

1. Overview Currently, DataBindings have three ways of customizing attributes.Namely: 1. xml introduces custom attribute labels.The code completes the binding with the @BindingAdapter annotation 2. Use directly in your code: @BindingMethods comment to introduce custom attributes and @BindingAdapter c ...

Posted by bluejay002 on Tue, 10 Mar 2020 04:06:51 +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

SpringCloud interceptor use (Interceptors interceptor use)

The SpringCloud backend intercepts front-end requests, which are logging, using SpringAOP, which is face-to-face. First, intercept the request address (ip), using the Handler Interceptor Adapter, which intercepts the request address, so it is appropriate to do some validation and preprocessing for the request address. For example, below, I use ...

Posted by ternto333 on Sun, 08 Mar 2020 17:31:26 +0100

Basic review of servlet s

Servlet overview A servlet is a small Java program (that is, a server-side applet) running in a Web server. Servlets typically receive and respond to requests from Web clients over HTTP (Hypertext Transfer Protocol). Preparation process: 1. Write a java class to implement the servlet interface 2. Mod ...

Posted by Wykster on Sat, 07 Mar 2020 14:38:16 +0100