spring: datasource: url: jdbc:mysql://localhost:3306/book_db?useSSL=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC username: root password: newroot driver-class-name: com.mysql.cj.jdbc.Driver mybatis: config-location: classpath:mybatis/mybatis-config.xml mapper-locations: classpath:mybatis/mapper/*.xml
@Bean public DataSource dataSource() { System.out.println("dsaihdaiohdoauofhuafduabfucakcnla"); DruidDataSource druidDataSource = new DruidDataSource(); druidDataSource.setUsername("root"); druidDataSource.setUrl("jdbc:mysql://localhost:3306/book_db?useSSL=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC"); druidDataSource.setPassword("newroot"); return druidDataSource; }