- Spring's own MD5 encryption
DigestUtils.md5DigestAsHex("xxxx".getBytes())
- SpringMvc intercepts both URL and static resource files
@Configuration
public class MyInterceptorConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new MyInterceptor()).addPathPatterns("/**");
}
}
- The back end in vue defines the String type, and the front end must input numbers, which are written in input
@change="(e) => {e.target.value = e.target.value.replace(/[^0-9.]/g,'')}"