淘宝客项目,支持App,微信小程序,QQ小程序

Overview

Mall-Coupons

公众号 掘金 CSDN 开源中国 知乎

文档完善中...

项目介绍

Mall-Coupons是一个从前端到后端完全开源的淘宝客项目,当初学习完uniapp之后想做一个实战项目,所以才研发了这个项目。由于本人平时主要从事后端研发,界面样式非我所长,所以大家觉得界面效果不好的可以自己修改。目前项目已经支持打包成App、微信小程序、QQ小程序、Web站点;理论上其他小程序支持,可能需要微调

Github地址:

Gitee地址:

功能列表

  • 推荐穿衣搭配
  • 搭配筛选
  • 搭配详情
  • 相关搭配推荐
  • 用户点赞
  • 商品分类
  • 分类查询商品列表
  • 首页轮播
  • APP、Web支持唤醒淘宝
  • 9.9包邮
  • 疯抢排行榜
  • 首页优质商品推荐
  • 商品、优惠券搜索
  • 商品详情
  • 相似商品推荐
  • 商品收藏、收藏夹
  • 口令购买、领券购买
  • 用户登录、微信登录、QQ登录、手机验证码登录
  • 用户新手教程

在线体验地址

App下载地址 QQ小程序 微信小程序 Web站点

App下载地址(用手机访问才能正确下载IOS和安卓版本): http://static.szjx.top/download/index.html

Web站点(用手机访问,PC端未适配):http://m.szjx.top

效果预览

组织结构

mall-coupons-server
├── doc -- 数据库脚本
├── lib -- 第三方依赖包
├── src -- 后端代码源码
├── static -- 静态页面,App下载静态页

技术选型

后端技术

技术 备注 地址
SpringBoot 容器+MVC框架 https://spring.io/projects/spring-boot
MyBatis ORM框架 http://www.mybatis.org/mybatis-3/zh/index.html
SpringSecurity 认证和授权框架 https://spring.io/projects/spring-security
SpringSocial OAuth2认证框架 https://github.com/spring-projects/spring-social
Redis 分布式缓存 https://redis.io/
Druid 数据库连接池 https://github.com/alibaba/druid
Lombok 简化对象封装工具 https://github.com/rzwitserloot/lombok
Fastjson JSON工具 https://github.com/alibaba/fastjson
spring-data-mybatis 封装Mybatis实现JPA部分功能 https://github.com/easybest/spring-data-mybatis

前端技术

技术 备注 地址
Vue 前端框架 https://vuejs.org/
UniApp 一个使用 Vue.js 开发所有前端应用的框架 https://uniapp.dcloud.io/
Vuex 全局状态管理框架 https://vuex.vuejs.org/
colorui 样式库 https://github.com/weilanwl/ColorUI

开发环境

工具 版本号 下载
JDK 1.8 https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Mysql 5.7 https://www.mysql.com/
Redis 5.0 https://redis.io/download
Nginx 1.10 http://nginx.org/en/download.html

部署文档

关注微信公众号:贝塔学JAVA ;回复文档获取部署文档

有任何部署疑问,欢迎给我留言

微信公众号

公众号

我的技术博客

https://silently9527.cn/

捐赠研发

如果您认为此项目帮到了您的开发工作,使您赚到钱了,您可以捐赠我一杯可乐(相信这比打赏主播更有意义)。

Comments
  • 不知哪的问题

    不知哪的问题

    2021-05-22 20:02:07.213 INFO 6216 --- [ restartedMain] c.h.mall.webapi.MallWebapiApplication : Starting MallWebapiApplication on LAPTOP-B38DRMDA with PID 6216 (D:\mall-coupons-server-master\mall-coupons-server-master\target\classes started by hp in D:\mall-coupons-server-master\mall-coupons-server-master) 2021-05-22 20:02:07.217 INFO 6216 --- [ restartedMain] c.h.mall.webapi.MallWebapiApplication : No active profile set, falling back to default profiles: default 2021-05-22 20:02:07.295 INFO 6216 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 2021-05-22 20:02:07.295 INFO 6216 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 2021-05-22 20:02:09.199 WARN 6216 --- [ restartedMain] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.huaan9527.mall.webapi]' package. Please check your configuration. 2021-05-22 20:02:09.266 INFO 6216 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2021-05-22 20:02:09.270 INFO 6216 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode. 2021-05-22 20:02:09.347 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.AppreciateRelationRepository. 2021-05-22 20:02:09.350 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.CarouselRepository. 2021-05-22 20:02:09.354 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.CollectionRepository. 2021-05-22 20:02:09.358 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.CollocationProductRepository. 2021-05-22 20:02:09.361 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.CollocationRepository. 2021-05-22 20:02:09.364 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.MenuRepository. 2021-05-22 20:02:09.368 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.TagRelationRepository. 2021-05-22 20:02:09.371 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.TagRepository. 2021-05-22 20:02:09.375 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.UserConnectionRepository. 2021-05-22 20:02:09.379 INFO 6216 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaan9527.mall.webapi.repository.UserRepository. 2021-05-22 20:02:09.380 INFO 6216 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 84ms. Found 0 repository interfaces. 2021-05-22 20:02:09.548 INFO 6216 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2021-05-22 20:02:09.548 INFO 6216 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode. 2021-05-22 20:02:09.632 INFO 6216 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 83ms. Found 10 repository interfaces. 2021-05-22 20:02:10.002 INFO 6216 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$408f1150] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-05-22 20:02:10.616 INFO 6216 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2021-05-22 20:02:10.666 INFO 6216 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-05-22 20:02:10.666 INFO 6216 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.22] 2021-05-22 20:02:10.856 INFO 6216 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2021-05-22 20:02:10.856 INFO 6216 --- [ restartedMain] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3560 ms 2021-05-22 20:02:11.937 WARN 6216 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'QQOAuth2Configuration' defined in file [D:\mall-coupons-server-master\mall-coupons-server-master\target\classes\com\huaan9527\mall\webapi\configuration\QQOAuth2Configuration.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class 2021-05-22 20:02:11.973 INFO 6216 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2021-05-22 20:02:12.002 INFO 6216 --- [ restartedMain] ConditionEvaluationReportLoggingListener :

    Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-05-22 20:02:12.005 ERROR 6216 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :


    APPLICATION FAILED TO START


    Description:

    Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

    Reason: Failed to determine a suitable driver class

    Action:

    Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

    Process finished with exit code 0

    opened by mantou612 5
  • 转换链接失败

    转换链接失败

    申请了pid绑定到了大淘客 但是点进单品有时还是会转换链接失败, body:{"requestId":"ba25c7b1701aed8bf839b883f37d756b","time":1613729205514,"code":10066,"msg":"请检查site_id和adzone_id是否匹配"}

    opened by zgl018 4
  • RedisTemplate  启动项目报错啊

    RedisTemplate 启动项目报错啊


    APPLICATION FAILED TO START


    Description:

    Parameter 3 of constructor in com.huaan9527.mall.webapi.controller.PublicController required a bean of type 'org.springframework.data.redis.core.RedisTemplate' that could not be found.

    The following candidates were found but could not be injected: - Bean method 'redisTemplate' in 'RedisAutoConfiguration' not loaded because @ConditionalOnMissingBean (names: redisTemplate; SearchStrategy: all) found beans named redisTemplate

    Action:

    Consider revisiting the entries above or defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.

    Disconnected from the target VM, address: '127.0.0.1:65469', transport: 'socket'

    opened by commanding 2
  • java -jar mall-coupons-server-0.0.1-SNAPSHOT.jar  --spring.profiles.active=prod &运行失败

    java -jar mall-coupons-server-0.0.1-SNAPSHOT.jar --spring.profiles.active=prod &运行失败

    com.huaan9527.mall.webapi.controller中构造函数的参数3。PublicController需要一个类型为'org.springframework.data.redis.core '的bean。RedisTemplate'无法找到。 找到了下列候选人,但无法注射:

    • 'RedisAutoConfiguration'中的Bean方法'redisTemplate'没有加载,因为@ConditionalOnMissingBean (names: redisTemplate;SearchStrategy: all)发现名为redisTemplate的bean
    opened by xiaolei000129 1
  • Redis注入报错

    Redis注入报错

    Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'publicController' defined in file [D:\source_code\mall-coupons-server\target\classes\com\huaan9527\mall\webapi\controller\PublicController.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.data.redis.core.RedisTemplate<java.lang.String, java.lang.Integer>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

    opened by zgl018 1