该文被密码保护。 阅读全文
posted @ 2018-07-26 17:51 yaohuiqin 阅读(39) 评论(2) 推荐(0) 编辑
摘要: 1、获取连接 private static Connection getConn() { String driver = "com.mysql.jdbc.Driver"; String url = "jdbc:mysql://localhost:3306/samp_db"; String usern 阅读全文
posted @ 2018-07-26 16:22 yaohuiqin 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1、引入jdbc支持,需要在pom.xml中添加依赖包: 2、在application.properties 文件中配置连接参数: 3、添加Controller类、Service接口、ServiceImpl实现类 阅读全文
posted @ 2018-07-26 15:09 yaohuiqin 阅读(4555) 评论(0) 推荐(0) 编辑
摘要: 今天在做SpringBoot连接Oracle数据库时,需要导入Oracle连接的依赖包,在Junit4测试时连接到数据库了,但是启动springboot项目报错,无法加载dataSource Caused by: org.springframework.beans.factory.BeanCreat 阅读全文
posted @ 2018-07-26 14:52 yaohuiqin 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1、管理员账户登录 2、运行sql 3、设置密码:在创建的用户名上右键,选择edit,设置密码 4、用新的账户名和密码登录。 阅读全文
posted @ 2018-07-26 10:43 yaohuiqin 阅读(271) 评论(0) 推荐(0) 编辑
摘要: pom.xml 支持jkbc: Oracle: pom.xml: application.properties: MySql: pom.xml: application.properties: 阅读全文
posted @ 2018-07-26 10:37 yaohuiqin 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 源码地址:https://gitee.com/yaohuiqin/SpringBootDemo 概念: 构建RESTful API的目的通常是由于多终端的原因,这些终端会共用很多底层业务逻辑,因此会抽象出来一层同时服务于多个移动端或Web前端。 SpringBoot 整合Swagger2,并配合Sp 阅读全文
posted @ 2018-07-26 09:23 yaohuiqin 阅读(212) 评论(0) 推荐(0) 编辑