# tcsx **Repository Path**: mylovin/tcsx ## Basic Information - **Project Name**: tcsx - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-26 - **Last Updated**: 2024-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #省钱兄单商户 # 一、JAVA开发环境配置 要求java jdk必须是1.8 [https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html](https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html) # 二、maven开发环境配置 maven需要配置阿里源 [https://jingyan.baidu.com/article/ce09321ba734f02bff858fcf.html](https://jingyan.baidu.com/article/ce09321ba734f02bff858fcf.html) # 三、IDEA开发工具下载 [https://www.jetbrains.com/idea/download/](https://www.jetbrains.com/idea/download/) ### idea激活码 [https://www.41sh.cn/?id=101](https://www.41sh.cn/?id=101) # 四、项目架构 spring+springboot+springData-JPA ### 1、springboot [https://spring.io/projects/spring-boot/](https://spring.io/projects/spring-boot/) ### 2、spring [https://spring.io/](https://spring.io/) ### 3、springData-JPA [https://spring.io/projects/spring-data-jpa](https://spring.io/projects/spring-data-jpa) # 五、项目目录说明 ### 1、项目架构 ![图片](https://uploader.shimo.im/f/zfhDUmutdRAU2B37.png!thumbnail) ### 2、定时任务说明 ![图片](https://uploader.shimo.im/f/5MzoWrpdYisYDwYD.png!thumbnail) # 六、项目配置说明 ### 1、配置mysql数据库 ![图片](https://uploader.shimo.im/f/7e74SbiqSYUr3uBf.png!thumbnail) 这里需要注意 需要再自己的数据库表中创建一个库 表会运行后会自动创建 ``` logging: file: logs/taobao-service.log server: port: 8888 spring: output: ansi: enabled: always jpa: database: mysql hibernate: ddl-auto: update show-sql: true datasource: url: jdbc:mysql://cdb-k1cwi22q.cd.tencentcdb.com:10001/test?useUnicode=true&characterEncoding=utf-8&useSSL=false//改成自己的数据库地址 username: 数据库用户名 password: 数据库密码 type: com.zaxxer.hikari.HikariDataSource hikari: minimum-idle: 5 maximum-pool-size: 50 idle-timeout: 3000 max-lifetime: 1800000 auto-commit: true pool-name: DatebookHikariCP connection-timeout: 3000 ``` driver-class-name: com.mysql.cj.jdbc.Driver ### 2、导入数据库说明 安装mysql [https://www.runoob.com/mysql/mysql-install.html](https://www.runoob.com/mysql/mysql-install.html) #### 新建数据库 ![图片](https://uploader.shimo.im/f/EamVG1zKT9Q0MZE8.png!thumbnail) #### 导入数据库(提供源码项目中的taobao.sql数据库) # 七、IDEA本地项目运行 再idea中导入项目选择maven导入 ### 4、本地maven安装 mvn clear清理缓存 mvn install 下载jar包 mvn package 打包 ### 5、本地运行 ![图片](https://uploader.shimo.im/f/ysceIGGAVgYirR1h.png!thumbnail) ### 6、swagger访问地址 [http://localhost:8888/swagger-ui.html#/](http://localhost:8888/swagger-ui.html#/) https://shimo.im/docs/9yCky3xQQRw3QytC《省钱兄资料准备流程2》 https://shimo.im/docs/Gk9GGtYTQv3RjwCV《省钱兄淘宝客快速部署方案》 https://shimo.im/docs/RJkjJjqprgPgdQ8d《省钱兄JAVA后台代码说明和环境说明》 https://shimo.im/docs/jHWCqT3JcJ33jcPP《省钱兄系统技术说明》