You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if use @Transactional,and set spring.aop.proxyTargetClass=false, this class also create by cglib not jdk proxy,you must config @EnableTransactionManagement(proxyTargetClass=false) to use jdk proxy with @Transactional
@Service
public class DemoServiceImpl implements DemoService {
@Transactional
public void test() {
System.out.println("Test");
}
}
And @EnableTransactionManagement proxyTargetClass default value is false, why spring boot change to true?