1.注解失效问题
使用JSR303校验@Validated
校验电子邮箱@Email()无效问题
新版需要再pom.xml中增加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
2.web中静态资源如何访问
1.webjars配置依赖:localhost:8080/webjars/
2.resources、static、public、/** localhost:8080/ 优先级如顺序
博客主要围绕Java展开,一是使用JSR303校验@Validated时,校验电子邮箱@Email()无效,新版需在pom.xml中增加依赖;二是介绍了web中静态资源的访问方式,包括webjars配置依赖及resources、static、public等目录的访问优先级。

8214

被折叠的 条评论
为什么被折叠?



