ssh2实例(用户登陆功能)

qiuqy919 51 0 RAR 2018-12-29 00:12:12

1.确定数据库名 applicationContext-db.xml中配置的是关于数据库的文件。 文件中的数据库名字为ssh2,如果你想修改成为你自己的数据库名,只需将该文件中16行DatabaseName对应的值改下就ok了! 2.执行com.ssh2.utile包下的CreateTable.java类 该类的作用是:通过spring提供的LocalSessionFactoryBean类创建数据库表 3.执行com.ssh2.utile包下的InsertUser.java类 该类的作用是:向数据库中插入一条用户信息,用户名admin 密码123 4.配置服务器并执行,输入上述的用户名及密码,提交跳转到成功页面!

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

下的时候三思,项目很粗略

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

学习了,很好

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

这个略简单了 如果登录名 密码在数据库就好了

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

至少该有个接口吧

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

还可以,学习下,

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

简单易懂,适合入门学习

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

一般吧,用处也不大

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

没有jar包,hibernate使用标注的形式写的。

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

版本不兼容

Generic placeholder image 卡了网匿名网友 2018-12-29 00:12:15

包的版本没说是个问题,用的sqlserver数据库居然用User表做例子,User是系统关键字哎,报错不断