摘要:
异步任务 通过注解实现简单的异步任务 编写service和controller,service类加入@Async注解,启动类加入@EnableAsync注解开启异步功能 @Service public class AsyncService { @Async public void hello(){ 阅读全文
摘要:
Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to dete 阅读全文
摘要:
对于数据访问层,无论是 SQL 还是 NOSQL,Spring Boot 底层都是采用 Spring Data 的方式进行统一处理各种数据库, Spring Data 也是 Spring 中与 Spring Boot、Spring Cloud 等齐名的知名项目。 JDBC 创建项目时引入JDBC模块 阅读全文