Spring MVC custom type conversion

Type conversion can convert the request parameter to the specified type, specified format (format of data), and then pass it to the parameter of the business method. Spring MVC has built-in common type converters. If the built-in type converter cannot meet the requirements, you can use a custom type converter.   There are two ways to customize ...

Posted on Thu, 30 Jan 2020 23:30:31 -0800 by noeledoran

AspectJ pointcut indicators - 04 target and @ target

target() Match all method executions of the target class and its subclasses to @target() Match the class whose target object is annotated by a specific annotation Final class structure chart 1,Factory package com.test.aspectj.expression; /** * Factory interface */ public interface Factory { // Make product ...

Posted on Thu, 30 Jan 2020 07:49:56 -0800 by teng84

How to return JSON and XML in springboot

The first time I wrote a blog in CSDN, right should be used to record my learning experience. I've always wanted to find out how to implement it in springboot, that is, to support JSON data return format and XML at the same time. Today, I finally implemented it and measured it myself, so it's qualit ...

Posted on Thu, 30 Jan 2020 00:32:13 -0800 by linux_pickle

SpringMVC Self-Study Log 03 (SpringMVC Notes)

Step 1: Create a new Moudle and add web support!Establish package structure com.kuang.controller Step 2: Due to possible resource filtering issues with Maven, we will configure it well <build> <resources> <resource> <directory>src/main/java</directory&g ...

Posted on Wed, 29 Jan 2020 18:23:46 -0800 by zack45668

Spring's bean Management (mixed use of annotation injection properties and annotation files)

Spring's bean Management (mixed use of annotation injection properties and annotation files) Annotation mode injection properties 1. Create the service class and dao class, and get dao object in the service Inject attribute first annotation @ Autowired (1) create dao and service objects            ...

Posted on Wed, 29 Jan 2020 07:47:30 -0800 by TashaAT

Four schemes of logback log level dynamic switch

There is often a need to dynamically modify the log level in a production environment. Now let's talk about the centralized plan Scheme 1: enable automatic scanning and updating of logback The configuration is as follows <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true" scanPe ...

Posted on Wed, 29 Jan 2020 02:01:11 -0800 by dm404

Using Spring Cloud Gateway to design open platform

What is open platform Enterprises need to provide their own services through the form of interface, which is called open platform. such as Alipay open platform,Taobao open platform. The call interface party is generally called ISV, independent software vendor, and the open platform party is called ISP, Internet Service Provider. In general, i ...

Posted on Tue, 28 Jan 2020 20:06:10 -0800 by Bennettman

Spring AOP-02 post enhanced AfterReturningAdvice

1. Classes to enhance package com.test.springadvicetype; import org.springframework.stereotype.Component; import java.text.SimpleDateFormat; import java.util.Date; /** * Attendants */ @Component public class Waiter { /** * service * @param name */ public String serve(String name) { System.ou ...

Posted on Tue, 28 Jan 2020 07:44:48 -0800 by skdzines

Set up the framework of entry-level ssm

1. Prepared jar package The following picture: Package of mybatis and database connection: Packages for spring and mvc: Other jar packages: spring's jar package can be downloaded from the official website, and other packages can be downloaded from maven's warehouse. You can use maven to configure maven ...

Posted on Sun, 26 Jan 2020 21:50:07 -0800 by tysoncane

Prediction of the cumulative number of confirmed cases of new coronavirus in Wuhan on January 28 using a simple all connected neural network

Code background These days, due to the outbreak of new coronavirus, the number of new confirmed cases every day surprised me to get up in the morning! In order to contribute to the society, we can stay at home and go out less even during the Spring Festival. Major IT enterprises have donated money and ...

Posted on Sun, 26 Jan 2020 21:31:29 -0800 by ollmorris