- 博客(2)
- 收藏
- 关注
原创 jar包执行时的一个错误:javax.persistence.PersistenceException: Unable to resolve persistence unit root URL
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed;
2020-04-07 17:32:19
4473
原创 使用@Validated对@RequestParamter和@PathVariable的参数进行参数验证
错误示范 // 直接在参数上添加@Validated是无效的,使用@Valid也无效 @GetMapping(value = "/test") public void test(@Validated @NotBlank @RequestParam("test") String test) { System.out.println(test); } 正确的示范...
2019-12-15 15:16:50
1457
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅