【未解决】spring security 有时不会注入 Principal ? 问题: 已经的 filter 中写入了 SecurityContextHolder.getContext().setAuthentication(auth); 1 SecurityContextHolder.getContext().setAuthentication(auth); 但是… Read More
【未解决】Spring JPA 竟然自动保存 问题: Java @Service public class T1Service { @Autowired T1Repo t1Repo; @Transactional public void test(int id) { T1 t1 = t1Repo.getOne(id); t1.setName("tt" + new Date()); } } 1234567891011 @Servicepublic class T1Service { @Autowired T1Repo t1Repo; @Transactional public void test(int id) { T1 t1 = t1Repo.getOne(id); t1.setName("tt" + new Date()); }} 虽然没有 t1Repo… Read More
spring data jpa @Onetoone 出现了 1+n query 问题 Issue. article 是 @OneToOne 但是 取 issue.article 时还会去se… Read More