<file_sep>package com.naive.toosimple.dao;

import com.naive.toosimple.domain.entity.Author;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AuthorDao {
    int add(Author author);
    int update(Author author);
    int delete(Long id);
    Author findAuthor(Long id);
    List<Author> findAuthorList();
}
<file_sep># springboot-mysql-jdbc
sample of spring-boot-jdbc
use manually dataSource ctrl and jdbc data persistence
尝试手动配置数据源的jdbc案例
