@SpringBootApplication
@EnableTransactionManagement
public class DemoApplication implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(DemoApplication .class, args);
}
@Autowired
DataSource dataSource;
@Override
public void run(String... args) throws Exception {
System.out.println("DATASOURCE = " + dataSource);
}
}
Spring Boot 查看数据库连接池是哪个连接池。
猜你喜欢
转载自blog.csdn.net/weixin_34025051/article/details/88306276
今日推荐
周排行