简介:《2小时学习Spring Boot》后续进阶课程,主要讲述了Spring Boot针对Web方面的相关技巧 讲师实战课程《Spring Boot微信点餐系统》 http://coding.imooc.com/class/117.html 《Spring Cloud微服务实战》 http://coding.imooc.com/class/187.html 均已上线
数据库啊 idea啊 这些不一样没事 但是springboot的版本一定要一样的
说明我的电脑配置好 不信你启动你的看看 就知道了
将代码上传至github上面
就是加个参数而已 ,本来这是部署方面的内容,既然讲到了就讲一下好了
spring:
profiles:
active: prod
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/luckymoney?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8
username: root
password: root
jpa:
hibernate:
ddl-auto: create
show-sql: true
CREATE TABLE `luckmoney` (
`id` int(11) NOT NULL,
`consumer` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
`money` decimal(19,2) DEFAULT NULL,
`producer` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
我的版本没这个功能 只能先删除表 在新建表
将代码上传至github上面
https://github.com/yangjiabinylg/luckymoney