Giter Club home page Giter Club logo

zhonghuasheng / projects Goto Github PK

View Code? Open in Web Editor NEW
51.0 4.0 6.0 18.34 MB

秒杀,音乐商店项目实战,Redis源码,推荐系统

Home Page: http://musicstore.anythy.cn

Java 9.30% Vue 0.03% HTML 5.20% JavaScript 0.16% CSS 0.13% C# 1.23% XSLT 0.16% ASP.NET 0.48% Makefile 0.61% C 69.07% Shell 0.46% Perl 2.18% M4 0.78% Roff 0.40% C++ 0.12% Batchfile 0.01% Lua 0.15% Ruby 0.49% Tcl 9.04% Smarty 0.01%
jsp-servlet-mysql jdbc mysql jquery redis springcloud springcloudalibaba spark-streaming

projects's Introduction

人生一世,皆在自渡;万般皆苦,唯有自渡!

projects's People

Contributors

546673380 avatar xiuerjava avatar zhonghuasheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

projects's Issues

dao层没有把错误处理完善,然后展示给用户,对项目调试也有影响,以注册为例

注释掉preparedStatement.setString(2, user.getUsername());,
当dao层的sql语句出错时,只会在后台报错,
例如,注册时只检测用户名以及邮箱是否已存在,
但是如果这两项没有问题,而是插入的sql语句有问题,没有成功注册,系统不会对用户提示注册失败,会直接跳转到登录界面:
java.sql.SQLException: No value specified for parameter 2
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:418)
at com.zhonghuasheng.musicstore.dao.impl.UserDAOImpl.create(UserDAOImpl.java:41)
at com.zhonghuasheng.musicstore.dao.impl.UserDAOImpl.create(UserDAOImpl.java:15)
at com.zhonghuasheng.musicstore.service.impl.UserServiceImpl.signUp(UserServiceImpl.java:49)
at com.zhonghuasheng.musicstore.action.user.RegisterAction.doPost(RegisterAction.java:50)

[ms-platform] 小例子

  1. 因为考虑后期数据库上走主从方式,所以提前研究下mybatis-plus的多数据源方式,写了个小李子,放到了Java这个repository中

寻求商务合作

hi,我们看到您分享了很多项目,项目种类丰富,非常适合新人练手。我们想与您进行课程合作,将这些项目制作为课程的实战项目,但是 github 上没有留下您的联系方式,可以在这里留下您的邮箱或微信,方便我们与您建立联系吗?

普通用户注册时不填写出生日期会报错500

操作步骤:
进入首页,点击加入测试按钮,进行普通用户注册,出生日期不填写,点击注册按钮
预期结果:
用户正常注册,并跳转到登录页面
实际结果:
点击注册按钮,报错500

用户登录没有经过验证即可跳转到首页

操作步骤:
在首页进入登录页面
1、账号和密码不输入,点击登陆按钮
2、输入不正确的账号和密码
预期结果:
1、给出提示,还在登陆页面
2、给出提示,还在登陆页面
实际结果:
1、直接进入首页
2、直接进入首页

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.