Integration of ssm framework (spring+ springMVC+MyBatis)

SSM framework integration 1. Construction environment 1.1 create data table The MySQL database is used to create a database named ssm and a table named account. CREATE DATABASE ssm; USE ssm; CREATE TABLE account( id INT PRIMARY KEY auto_increment, NAME VARCHAR(20), money DOUBLE ); 1.2 create ...

Posted on Wed, 15 Jan 2020 08:14:23 -0500 by maxsslade

spring boot 2.x spring cloud Greenwich.SR1 gateway component zuul

spring boot 2.x spring cloud Greenwich.SR1 gateway component zuul Article directory spring boot 2.x spring cloud Greenwich.SR1 gateway component zuul 1. Project construction 1.1. Build a new project 'budget spring cloud Zul'. The pom file is as follows 1.2. Add the comments of gateway '@ EnableZu ...

Posted on Wed, 15 Jan 2020 06:18:12 -0500 by DeathStar

[spring] AOP learning notes

[spring] AOP learning notes I. Preface 1. Take a chestnut 2. Transaction control 2, Dynamic agent 1. JDK agent 2. CGLIB agent 3, Here comes the point 1. concept 2. Relevant terms 3. dependence 4. Steps of AOP configuration based on XML 5. Writing of pointcut expression 6. Five notification types ...

Posted on Wed, 15 Jan 2020 03:04:52 -0500 by bluejay002

Spring MVC file upload and interceptor

File upload of spring MVC 1 - spring MVC request - file upload - client form implementation (application) The file upload client form needs to meet the following requirements: Form item type = "file" The form is submitted by post The enctype attribute of a form is in the form of multipart ...

Posted on Wed, 15 Jan 2020 02:28:57 -0500 by littledragon

New springboot + mybatis plus project

New springboot + mybatis plus project First, use idea to create a new SpringBoot [failed to transfer the pictures in the external chain. The source station may have anti-theft chain mechanism. It is recommended to save the pictures and upload them directly (img-4vpbYRCZ-1579060750966)(C:\Users\Leve ...

Posted on Wed, 15 Jan 2020 00:05:45 -0500 by squallm1

Spring Boot uses embedded containers. How to configure the custom Filter?

Listener, filter and Servlet are three components commonly used in Java Web development. Filter is the most frequently used component, which is often used for simple permission processing, request header filtering and XSS prevention. If we use the traditional Spring MVC for development, we only need to configure the following in Tomcat's web.x ...

Posted on Tue, 14 Jan 2020 06:31:10 -0500 by php3ch0

ByteBuddy manipulating Java bytes example: automatically removing spaces on both sides of a string

I learned a little bit about ByteBuddy today. Its official warehouse address is: https://github.com/raphw/byte-buddy. Official description: Runtime code generation for the Java virtual machine.   Anyone who has written Java knows that Java only supports interface based dynamic proxies. If your class does not implement an interface, and yo ...

Posted on Tue, 14 Jan 2020 06:07:37 -0500 by FidelGonzales

Train ticket query system -- using python to monitor more than 12306 tickets

At the recent Spring Festival peak, I started to buy train tickets home from December. However, geese ~ reality is always so cruel that I can't remember the time when I put the tickets, or I can't stare at and swipe the tickets in real time, and I don't know whether the software is reliable or not. Anyw ...

Posted on Tue, 14 Jan 2020 04:55:38 -0500 by justinchrono

AOP learning of Spring

Now let's learn aop of spring AOP concept Keyword Meaning aspect Cut, focus (what I can do). PointCut Cut point, define cut rules (who can I do things for) Joinpoint Connection point, specific method of agent needed (specific thing of agent needed) Target Object Represented object (targe ...

Posted on Tue, 14 Jan 2020 03:31:25 -0500 by sarbas

Eureka service governance and configuration details

1, Eureka service governance mechanism Eureka service governance has three elements: service provider, service consumer and registration center. The relationship between the three elements is as follows: Service provider Service registration When the service provider starts, it will register the s ...

Posted on Tue, 14 Jan 2020 03:00:17 -0500 by Pryach