人生一世,皆在自渡;万般皆苦,唯有自渡!
zhonghuasheng / projects Goto Github PK
View Code? Open in Web Editor NEW秒杀,音乐商店项目实战,Redis源码,推荐系统
Home Page: http://musicstore.anythy.cn
秒杀,音乐商店项目实战,Redis源码,推荐系统
Home Page: http://musicstore.anythy.cn
人生一世,皆在自渡;万般皆苦,唯有自渡!
注释掉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)
操作步骤:
用户登录进入home页面,鼠标放置用户名上,点击个人信息
预期结果:
日期和姓名数据回显
实际结果:
日期和姓名数据不能回显
注意action中的变量,同时可提出Constants
hi,我们看到您分享了很多项目,项目种类丰富,非常适合新人练手。我们想与您进行课程合作,将这些项目制作为课程的实战项目,但是 github 上没有留下您的联系方式,可以在这里留下您的邮箱或微信,方便我们与您建立联系吗?
当前文件上传到了webapp/document-upload/avatar下,那么能否考虑把root目录配置到tomcat之外,并且通过把root目录的值赋值到properties中
操作步骤:
进入首页,点击加入测试按钮,进行普通用户注册,出生日期不填写,点击注册按钮
预期结果:
用户正常注册,并跳转到登录页面
实际结果:
点击注册按钮,报错500
操作步骤:
在首页进入登录页面
1、账号和密码不输入,点击登陆按钮
2、输入不正确的账号和密码
预期结果:
1、给出提示,还在登陆页面
2、给出提示,还在登陆页面
实际结果:
1、直接进入首页
2、直接进入首页
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.