持续学习&持续更新中…
守破离
【雷丰阳-谷粒商城 】【分布式基础篇-全栈开发篇】【00】补充
- WindowsCMD
- 插件
- IDEA
- VsCode
- Maven
- vagrant
- Docker
- 解决MySQL连接慢问题
- 启动(自动)Docker
- 注意切换到root用户
- 远程访问MySQL
- MyBatisPlus
- 代码地址
- 参考
WindowsCMD
插件
IDEA
- MybatisX
- lombok
VsCode
Maven
G:\apache-maven-3.6.1-bin\apache-maven-3.6.1\conf\settings.xml:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
配置 jdk1.8 编译项目:
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
vagrant
Docker
解决MySQL连接慢问题
启动(自动)Docker
注意切换到root用户
远程访问MySQL
MyBatisPlus
<!-- 导入mysql驱动 -->
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.17</version>
</dependency>
spring:
datasource:
username: root
password: root
url: jdbc:mysql://192.168.56.10:3306/gulimall_pms?useSSL=false
driver-class-name: com.mysql.jdbc.Driver
mybatis-plus:
global-config:
db-config:
id-type: auto # 主键自增
# mapper-locations: classpath:/mapper/**/*.xml
# classpath代表只扫描自己的
mapper-locations: classpath*:/mapper/**/*.xml
Java里面没有Longblob
类型,这个用renren-fast-generator自动生成的类型没有自动转换,改成 byte[]
代码地址
https://github.com/lpruoyu/gulimall
参考
雷丰阳: 谷粒商城
本文完,感谢您的关注支持!