Python crawls webmaster materials website pictures of a certain series

Use Pyhton to crawl images (customize request path, match resources) Article directory 1. Learning purpose: 2. Code part 1. Create a customized request object 2. The second step is the positioning of target resources. 3. Write code 4. Summary of content and shortcomings 1. Learning purpose: Learn python request customization based on website connection Learn […]

web programming (1) spring-webmvc bird’s eye view

1 Overview Since it’s a bird’s eye view, let’s put aside the specific technology and start with the simplest process from an external perspective. 1.1 Simple process If we do not rely on mature technology frameworks such as tomcat and spring webmvc, but only handle it through the TCP class library provided by JDK, I […]

Spring MVC Eleven: @EnableWebMvc

We study @EnableWebMvc from two angles: Use of @EnableWebMvc The underlying principle of @EnableWebMvc Usage of @EnableWebMvc @EnableWebMvc needs to be combined with a java configuration class to take effect. In fact, Spring has many @Enablexxxx annotations, and they all take effect in the same way. By combining with @Configuration, the configuration classes in @Enablexxxx […]

Webmin (CVE-2019-15107) remote command execution vulnerability reappears

Article directory Webmin remote command execution vulnerability 1. Vulnerability number 2. Vulnerability description 3. Affected versions 4. How to use it (use case) 4.1 Startup environment 4.2 Vulnerability recurrence 4.3 In-depth utilization 4.4 Cause of the vulnerability 5. Accompanying documents 6. Reinforcement suggestions 7. Reference information 8. Vulnerability classification Webmin remote command execution vulnerability 1. […]

ssm integrates configuration files and related analysis of mybatis, log4j and MySQL database, webmvc, shiro, dbcp, etc.

1pom file <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=” http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>com.xzp</groupId> <artifactId>wuliu</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <!–Configured a Maven War plug-in named “maven-war-plugin” to solve the problem of Cannot access defaults field of Properties –> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.3.1</version> </plugin> </plugins> </build> <!–Configured a Maven War plug-in named “maven-war-plugin” to solve the problem of Cannot access […]

WebMvcConfigurerAdapter, WebMvcConfigurer, WebMvcConfigurationSupport

What is the relationship between WebMvcConfigurerAdapter, WebMvcConfigurer, and WebMvcConfigurationSupport? WebMvcConfigurerAdapter, WebMvcConfigurer and WebMvcConfigurationSupport are classes in the Spring MVC framework used to configure web applications. WebMvcConfigurerAdapter is an outdated implementation class of WebMvcConfigurer, and WebMvcConfigurationSupport is an abstract implementation class of WebMvcConfigurer. WebMvcConfigurerAdapter: is an obsolete class that implements the WebMvcConfigurer interface and provides some […]

spring mvc WebMvcConfigurationSupport WebMvcConfigurer WebMvcConfigurerAdapter difference

All three classes are located in org.springframework.web.servlet.config.annotation The jar package it belongs to is spring-webmvc. Among them, WebMvcConfigurer is an interface, WebMvcConfigurerAdapter is an abstract class, and WebMvcConfigurationSupport is an ordinary class. WebMvcConfigurer package org.springframework.web.servlet.config.annotation; import java.util.List; import org.springframework.core.convert.converter.Converter; import org.springframework.format.Formatter; import org.springframework.format.FormatterRegistry; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.lang.Nullable; import org.springframework.validation.MessageCodesResolver; import org.springframework.validation.Validator; import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.method.support.HandlerMethodArgumentResolver; […]

spring-boot2.x, custom HttpMessageConverters caused by using EnableWebMvc annotation are unavailable

In terms of json object conversion, springboot uses MappingJackson2HttpMessageConverter by default. For general requirements, use Alibaba’s FastJson as the converter for json objects in the project. FastJson SerializerFeatures WriteNullListAsEmpty: If the List field is null, the output is [], not null WriteNullStringAsEmpty: If the character type field is null, the output is “”, not null […]

FileNotFoundException caused by SpringBoot version upgrade–WebMvcConfigurerAdapter.class

Dependence Recently, the company’s project requires JDK to be upgraded from 8 to 17, and the SpringBoot version to be upgraded from 2.x to 3.x. During this period, a strange FileNotFoundException was encountered. The log is as follows (use xxx to desensitize sensitive information) org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.xxx.xxx.OperationAnalysisApplication] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:179) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:397) […]