swagger3.0 sets up grouping and configures multiple scanning paths and filtering URLs

package com.jeeplus.config; import com.fasterxml.classmate.TypeResolver; import com.jeeplus.sys.service.dto.LightUserDTO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpMethod; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.schema.AlternateTypeRule; import springfox.documentation.service.*; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spi.service.contexts.SecurityContext; import springfox.documentation.spring.web.plugins.Docket; import java.util.*; /** * swagger configuration */ @Configuration public class SwaggerConfig implements WebMvcConfigurer { @Bean public Docket api() {//Default grouping TypeResolver […]

URL RFC3987 Internationalization Rules Security Character Set and Related Security Regularity Recommendations

1. Absolutely internationalized IRI regularity. /^[a-z](?:[-a-z0-9\ + \.])*:(?:\/\/(?:(?:%[0-9a-f][0- 9a-f]|[-a-z0-9\._~\x{A0}-\x{D7FF}\x{F900}-\x{FDCF}\x{FDF0}-\x{FFEF}\ x{10000}-\x{1FFFD}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}\x{40000}-\x{4FFFD}\x{50000}-\ x{5FFFD}\x{60000}-\x{6FFFD}\x{70000}-\x{7FFFD}\x{80000}-\x{8FFFD}\x{90000}-\x{9FFFD}\x {A0000}-\x{AFFFD}\x{B0000}-\x{BFFFD}\x{C0000}-\x{CFFFD}\x{D0000}-\x{DFFFD}\x{E1000}-\x {EFFFD}!\$ & amp;’\(\)\*\ + ,;=:])*@)?(?:\[(?:(?:(?:[0-9a-f]{ 1,4}:){6}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1- 9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\.(?:[0- 9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-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|1[0-9][0-9]| 2[0-4][0-9]|25[0-5])(?:\.(?:[0-9]|[1-9][0-9]|1[0-9] [0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}: ){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1 ,4}:){0,6}[0-9a-f]{1,4})?::)|v[0-9a-f] + \.[-a-z0-9\._~ !\$ & amp;’\(\)\*\ + ,;=:] + )\]|(?:[0-9]|[1-9][0-9]|1[0-9 ][0-9]|2[0-4][0-9]|25[0-5])(?:\.(?:[0-9]|[1-9][0-9] […]

Java-API brief analysis_java.net.URL class (based on Latest JDK) (short analysis of source code)

[Copyright Statement] Reprinting without the consent of the blogger is strictly prohibited! (Please respect the originality, the blogger reserves the right to pursue claims) https://blog.csdn.net/m0_69908381/article/details/134024288 From [Progress*Yu Chen’s blog] Because I found that currently, my awareness of learning Java-API is relatively weak, and I need to slowly get used to using Java-API, and even analyze […]

Use of Linux libcurl library, face recognition through libcurl library

Introduction to ibcurl libcurl is a cross-platform network protocol library that supports http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificate authorization, HTTP POST, HTTP PUT, FTP upload, HTTP basic form upload, proxies, cookies, and user authentication. libcurl’s official website http://curl.haxx.se/ libcurl download Click the download link below to […]

urllib+BeautifulSoup crawls and parses 2345 Weather King historical weather data

urllib + BeautifulSoup crawls and parses 2345 Weather King historical weather data Website: Dongcheng Historical Weather Query_Historical Weather Forecast Query_2345 Weather Forecast 1. Code import json import logging import urllib.parse from datetime import date, datetime from random import randint from time import sleep importpymysql from bs4 import BeautifulSoup #Define target URL import requests def weather_req(): […]

What happens to the browser after entering the URL address

What happens to the browser after entering the URL address URL parsing First, a thread will be opened. When the browser receives the incoming URL and starts a network thread, it happens inside the browser. URL encoding 1 Encode the entire URL: handle spaces/Chinese (encodeURI/decodeURI) url = www.baidu.com/?name=小红 &from=http://www.xiaohongshu.com’ 2 Mainly encode the passed parameter […]

Successfully solved HTTPSConnectionPool(host=huggingface.co, port=443): Max retries exceeded with url:LocalEntryNo

HTTPSConnectionPool(host=’huggingface.co’, port=443): Max retries exceeded with url:LocalEntryNotFoundError: Connection error, and we cannot find the requested files in the disk cache. Please try again or make sure your Internet connection is on. Table of Contents Solve the problem Solutions Solution Solve the problem ‘HTTPSConnectionPool(host=’huggingface.co’, port=443): Max retries exceeded with url: /unstructuredio/yolo_x_layout/resolve/main/yolox_l0.05_quantized.onnx (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at […]

Python10-Use urllib module to process URLs

Python10-Use the urllib module to process URLs 1.url library description 2.urllib.request 2.1urlopen 2.2urlretrieve 2.3Request 2.4 Example 3.urllib.parse 3.1urlparse 3.2urlunparse 3.3urlencode 3.4quote 3.5unquote 3.6 Example 1.url library description urllib is a module in the Python standard library that provides functions for processing URLs (Uniform Resource Locator). It contains some sub-modules, such as urllib.request (open and read […]