校园交易平台后台系统git操作全过程项目初始化用户模块完成
时间:2022-05-15
本文章向大家介绍校园交易平台后台系统git操作全过程项目初始化用户模块完成,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
项目初始化
Shusheng Shi@PC-of-sss MINGW64 /h/mmall
$ touch README.md
Shusheng Shi@PC-of-sss MINGW64 /h/mmall
$ touch .gitignore
Shusheng Shi@PC-of-sss MINGW64 /h/mmall
$ git init
Initialized empty Git repository in H:/mmall/.git/
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
README.md
pom.xml
src/
nothing added to commit but untracked files present (use "git add" to track)
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git add .
warning: CRLF will be replaced by LF in .gitignore.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in pom.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/WEB-INF/web.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/index.jsp.
The file will have its original line endings in your working directory.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: README.md
new file: pom.xml
new file: src/main/webapp/WEB-INF/web.xml
new file: src/main/webapp/index.jsp
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git commit -am 'first commit init project'
[master (root-commit) 0383eae] first commit init project
5 files changed, 69 insertions(+)
create mode 100644 .gitignore
create mode 100644 README.md
create mode 100644 pom.xml
create mode 100644 src/main/webapp/WEB-INF/web.xml
create mode 100644 src/main/webapp/index.jsp
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git remote add origin git@gitee.com:shushengshi/mmall_learning.git
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git branch
* master
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git push -u origin master
To gitee.com:shushengshi/mmall_learning.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@gitee.com:shushengshi/mmall_learning.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git pull
warning: no common commits
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
From gitee.com:shushengshi/mmall_learning
* [new branch] master -> origin/master
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git push -u origin master
To gitee.com:shushengshi/mmall_learning.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@gitee.com:shushengshi/mmall_learning.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git push -u -f origin master
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (11/11), 1.22 KiB | 0 bytes/s, done.
Total 11 (delta 0), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
+ 1e43320...0383eae master -> master (forced update)
Branch master set up to track remote branch master from origin.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git branch
* master
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git branch -r
origin/master
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (master)
$ git checkout -b v1.0 origin/master
Switched to a new branch 'v1.0'
Branch v1.0 set up to track remote branch master from origin.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git branch
master
* v1.0
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push origin HEAD -u
Total 0 (delta 0), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
* [new branch] HEAD -> v1.0
Branch v1.0 set up to track remote branch v1.0 from origin.
配置文件完成
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: pom.xml
modified: src/main/webapp/WEB-INF/web.xml
Untracked files:
(use "git add <file>..." to include in what will be committed)
src/main/java/
src/main/resources/
src/main/webapp/WEB-INF/dispatcher-servlet.xml
no changes added to commit (use "git add" and/or "git commit -a")
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git add .
warning: CRLF will be replaced by LF in pom.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/WEB-INF/web.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/CartMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/CategoryMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/OrderItemMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/OrderMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/PayInfoMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/ProductMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/ShippingMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/UserMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Cart.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Category.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Order.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/OrderItem.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/PayInfo.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Product.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/Shipping.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/pojo/User.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/applicationContext-datasource.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/applicationContext.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/generatorConfig.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/CartMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/CategoryMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/OrderItemMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/OrderMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/PayInfoMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/ProductMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/ShippingMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/UserMapper.xml.
The file will have its original line endings in your working directory.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: pom.xml
new file: src/main/java/com/mmall/dao/CartMapper.java
new file: src/main/java/com/mmall/dao/CategoryMapper.java
new file: src/main/java/com/mmall/dao/OrderItemMapper.java
new file: src/main/java/com/mmall/dao/OrderMapper.java
new file: src/main/java/com/mmall/dao/PayInfoMapper.java
new file: src/main/java/com/mmall/dao/ProductMapper.java
new file: src/main/java/com/mmall/dao/ShippingMapper.java
new file: src/main/java/com/mmall/dao/UserMapper.java
new file: src/main/java/com/mmall/pojo/Cart.java
new file: src/main/java/com/mmall/pojo/Category.java
new file: src/main/java/com/mmall/pojo/Order.java
new file: src/main/java/com/mmall/pojo/OrderItem.java
new file: src/main/java/com/mmall/pojo/PayInfo.java
new file: src/main/java/com/mmall/pojo/Product.java
new file: src/main/java/com/mmall/pojo/Shipping.java
new file: src/main/java/com/mmall/pojo/User.java
new file: src/main/resources/applicationContext-datasource.xml
new file: src/main/resources/applicationContext.xml
new file: src/main/resources/datasource.properties
new file: src/main/resources/generatorConfig.xml
new file: src/main/resources/logback.xml
new file: src/main/resources/mappers/CartMapper.xml
new file: src/main/resources/mappers/CategoryMapper.xml
new file: src/main/resources/mappers/OrderItemMapper.xml
new file: src/main/resources/mappers/OrderMapper.xml
new file: src/main/resources/mappers/PayInfoMapper.xml
new file: src/main/resources/mappers/ProductMapper.xml
new file: src/main/resources/mappers/ShippingMapper.xml
new file: src/main/resources/mappers/UserMapper.xml
new file: src/main/resources/mmall.properties
new file: src/main/webapp/WEB-INF/dispatcher-servlet.xml
modified: src/main/webapp/WEB-INF/web.xml
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git commit -am 'project init commit'
[v1.0 ff5f0ba] project init commit
33 files changed, 3048 insertions(+), 10 deletions(-)
create mode 100644 src/main/java/com/mmall/dao/CartMapper.java
create mode 100644 src/main/java/com/mmall/dao/CategoryMapper.java
create mode 100644 src/main/java/com/mmall/dao/OrderItemMapper.java
create mode 100644 src/main/java/com/mmall/dao/OrderMapper.java
create mode 100644 src/main/java/com/mmall/dao/PayInfoMapper.java
create mode 100644 src/main/java/com/mmall/dao/ProductMapper.java
create mode 100644 src/main/java/com/mmall/dao/ShippingMapper.java
create mode 100644 src/main/java/com/mmall/dao/UserMapper.java
create mode 100644 src/main/java/com/mmall/pojo/Cart.java
create mode 100644 src/main/java/com/mmall/pojo/Category.java
create mode 100644 src/main/java/com/mmall/pojo/Order.java
create mode 100644 src/main/java/com/mmall/pojo/OrderItem.java
create mode 100644 src/main/java/com/mmall/pojo/PayInfo.java
create mode 100644 src/main/java/com/mmall/pojo/Product.java
create mode 100644 src/main/java/com/mmall/pojo/Shipping.java
create mode 100644 src/main/java/com/mmall/pojo/User.java
create mode 100644 src/main/resources/applicationContext-datasource.xml
create mode 100644 src/main/resources/applicationContext.xml
create mode 100644 src/main/resources/datasource.properties
create mode 100644 src/main/resources/generatorConfig.xml
create mode 100644 src/main/resources/logback.xml
create mode 100644 src/main/resources/mappers/CartMapper.xml
create mode 100644 src/main/resources/mappers/CategoryMapper.xml
create mode 100644 src/main/resources/mappers/OrderItemMapper.xml
create mode 100644 src/main/resources/mappers/OrderMapper.xml
create mode 100644 src/main/resources/mappers/PayInfoMapper.xml
create mode 100644 src/main/resources/mappers/ProductMapper.xml
create mode 100644 src/main/resources/mappers/ShippingMapper.xml
create mode 100644 src/main/resources/mappers/UserMapper.xml
create mode 100644 src/main/resources/mmall.properties
create mode 100644 src/main/webapp/WEB-INF/dispatcher-servlet.xml
rewrite src/main/webapp/WEB-INF/web.xml (93%)
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push
Counting objects: 46, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (43/43), done.
Writing objects: 100% (46/46), 19.54 KiB | 0 bytes/s, done.
Total 46 (delta 17), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
0383eae..ff5f0ba v1.0 -> v1.0
用户模块完成
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: pom.xml
modified: src/main/java/com/mmall/dao/UserMapper.java
modified: src/main/resources/logback.xml
modified: src/main/resources/mappers/UserMapper.xml
modified: src/main/webapp/WEB-INF/dispatcher-servlet.xml
modified: src/main/webapp/WEB-INF/web.xml
Untracked files:
(use "git add <file>..." to include in what will be committed)
src/main/java/com/mmall/common/
src/main/java/com/mmall/controller/
src/main/java/com/mmall/service/
src/main/java/com/mmall/util/
no changes added to commit (use "git add" and/or "git commit -a")
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git add .
warning: CRLF will be replaced by LF in pom.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/UserMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/UserMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/WEB-INF/web.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/Const.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/ResponseCode.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/ServerResponse.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/TokenCache.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/backend/UserManageController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/portal/UserController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/IUserService.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/impl/UserServiceImpl.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/MD5Util.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/PropertiesUtil.java.
The file will have its original line endings in your working directory.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: pom.xml
new file: src/main/java/com/mmall/common/Const.java
new file: src/main/java/com/mmall/common/ResponseCode.java
new file: src/main/java/com/mmall/common/ServerResponse.java
new file: src/main/java/com/mmall/common/TokenCache.java
new file: src/main/java/com/mmall/controller/backend/UserManageController.java
new file: src/main/java/com/mmall/controller/portal/UserController.java
modified: src/main/java/com/mmall/dao/UserMapper.java
new file: src/main/java/com/mmall/service/IUserService.java
new file: src/main/java/com/mmall/service/impl/UserServiceImpl.java
new file: src/main/java/com/mmall/util/MD5Util.java
new file: src/main/java/com/mmall/util/PropertiesUtil.java
modified: src/main/resources/logback.xml
modified: src/main/resources/mappers/UserMapper.xml
modified: src/main/webapp/WEB-INF/dispatcher-servlet.xml
modified: src/main/webapp/WEB-INF/web.xml
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git commit -am '用户模块'
[v1.0 cf30e25] 用户模块
16 files changed, 828 insertions(+), 35 deletions(-)
create mode 100644 src/main/java/com/mmall/common/Const.java
create mode 100644 src/main/java/com/mmall/common/ResponseCode.java
create mode 100644 src/main/java/com/mmall/common/ServerResponse.java
create mode 100644 src/main/java/com/mmall/common/TokenCache.java
create mode 100644 src/main/java/com/mmall/controller/backend/UserManageController.java
create mode 100644 src/main/java/com/mmall/controller/portal/UserController.java
create mode 100644 src/main/java/com/mmall/service/IUserService.java
create mode 100644 src/main/java/com/mmall/service/impl/UserServiceImpl.java
create mode 100644 src/main/java/com/mmall/util/MD5Util.java
create mode 100644 src/main/java/com/mmall/util/PropertiesUtil.java
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push
Counting objects: 35, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (30/30), done.
Writing objects: 100% (35/35), 9.47 KiB | 0 bytes/s, done.
Total 35 (delta 10), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
ff5f0ba..cf30e25 v1.0 -> v1.0
商品模块完成
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: src/main/java/com/mmall/common/Const.java
modified: src/main/java/com/mmall/dao/ProductMapper.java
modified: src/main/java/com/mmall/util/PropertiesUtil.java
modified: src/main/resources/mappers/ProductMapper.xml
modified: src/main/webapp/index.jsp
Untracked files:
(use "git add <file>..." to include in what will be committed)
src/main/java/com/mmall/controller/backend/ProductManageController.java
src/main/java/com/mmall/controller/portal/ProductController.java
src/main/java/com/mmall/service/IFileService.java
src/main/java/com/mmall/service/IProductService.java
src/main/java/com/mmall/service/impl/FileServiceImpl.java
src/main/java/com/mmall/service/impl/ProductServiceImpl.java
src/main/java/com/mmall/util/DateTimeUtil.java
src/main/java/com/mmall/util/FTPUtil.java
src/main/java/com/mmall/vo/
no changes added to commit (use "git add" and/or "git commit -a")
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git add .
warning: CRLF will be replaced by LF in src/main/java/com/mmall/common/Const.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/ProductMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/PropertiesUtil.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/ProductMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/webapp/index.jsp.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/backend/ProductManageController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/portal/ProductController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/IFileService.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/IProductService.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/impl/FileServiceImpl.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/impl/ProductServiceImpl.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/DateTimeUtil.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/util/FTPUtil.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/vo/ProductDetailVo.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/vo/ProductListVo.java.
The file will have its original line endings in your working directory.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: src/main/java/com/mmall/common/Const.java
new file: src/main/java/com/mmall/controller/backend/ProductManageController.java
new file: src/main/java/com/mmall/controller/portal/ProductController.java
modified: src/main/java/com/mmall/dao/ProductMapper.java
new file: src/main/java/com/mmall/service/IFileService.java
new file: src/main/java/com/mmall/service/IProductService.java
new file: src/main/java/com/mmall/service/impl/FileServiceImpl.java
new file: src/main/java/com/mmall/service/impl/ProductServiceImpl.java
new file: src/main/java/com/mmall/util/DateTimeUtil.java
new file: src/main/java/com/mmall/util/FTPUtil.java
modified: src/main/java/com/mmall/util/PropertiesUtil.java
new file: src/main/java/com/mmall/vo/ProductDetailVo.java
new file: src/main/java/com/mmall/vo/ProductListVo.java
modified: src/main/resources/mappers/ProductMapper.xml
modified: src/main/webapp/index.jsp
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git commit -am '商品模块'
[v1.0 0c8dab1] 商品模块
15 files changed, 1055 insertions(+), 16 deletions(-)
create mode 100644 src/main/java/com/mmall/controller/backend/ProductManageController.java
create mode 100644 src/main/java/com/mmall/controller/portal/ProductController.java
create mode 100644 src/main/java/com/mmall/service/IFileService.java
create mode 100644 src/main/java/com/mmall/service/IProductService.java
create mode 100644 src/main/java/com/mmall/service/impl/FileServiceImpl.java
create mode 100644 src/main/java/com/mmall/service/impl/ProductServiceImpl.java
create mode 100644 src/main/java/com/mmall/util/DateTimeUtil.java
create mode 100644 src/main/java/com/mmall/util/FTPUtil.java
create mode 100644 src/main/java/com/mmall/vo/ProductDetailVo.java
create mode 100644 src/main/java/com/mmall/vo/ProductListVo.java
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push
Counting objects: 34, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (31/31), done.
Writing objects: 100% (34/34), 10.86 KiB | 0 bytes/s, done.
Total 34 (delta 11), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
6d19e5a..0c8dab1 v1.0 -> v1.0
收货地址模块完成
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: src/main/java/com/mmall/dao/ShippingMapper.java
modified: src/main/resources/mappers/ShippingMapper.xml
Untracked files:
(use "git add <file>..." to include in what will be committed)
src/main/java/com/mmall/controller/portal/ShippingController.java
src/main/java/com/mmall/service/IShippingService.java
src/main/java/com/mmall/service/impl/ShippingServiceImpl.java
no changes added to commit (use "git add" and/or "git commit -a")
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git add .
warning: CRLF will be replaced by LF in src/main/java/com/mmall/dao/ShippingMapper.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/resources/mappers/ShippingMapper.xml.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/controller/portal/ShippingController.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/IShippingService.java.
The file will have its original line endings in your working directory.
warning: CRLF will be replaced by LF in src/main/java/com/mmall/service/impl/ShippingServiceImpl.java.
The file will have its original line endings in your working directory.
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git status
On branch v1.0
Your branch is up-to-date with 'origin/v1.0'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: src/main/java/com/mmall/controller/portal/ShippingController.java
modified: src/main/java/com/mmall/dao/ShippingMapper.java
new file: src/main/java/com/mmall/service/IShippingService.java
new file: src/main/java/com/mmall/service/impl/ShippingServiceImpl.java
modified: src/main/resources/mappers/ShippingMapper.xml
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git commit -am '收货地址模块'
[v1.0 eb1bb33] 收货地址模块
5 files changed, 295 insertions(+), 25 deletions(-)
create mode 100644 src/main/java/com/mmall/controller/portal/ShippingController.java
create mode 100644 src/main/java/com/mmall/service/IShippingService.java
create mode 100644 src/main/java/com/mmall/service/impl/ShippingServiceImpl.java
Shusheng Shi@PC-of-sss MINGW64 /h/mmall (v1.0)
$ git push
Counting objects: 19, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (19/19), 3.45 KiB | 0 bytes/s, done.
Total 19 (delta 9), reused 0 (delta 0)
To gitee.com:shushengshi/mmall_learning.git
8c735cb..eb1bb33 v1.0 -> v1.0
- 【自然框架】——页面基类与设计模式(二) 模板模式
- HLS Lesson17-数组优化:数组映射和重组
- HLS Lesson16-数组优化:数组分割
- HLS Lesson15-for循环优化:其他方法
- 对自己的上网搜索记录进行爬虫是怎样一种体验
- HLS Lesson13-for循环优化:合并
- HLS Lesson12-for循环优化:基本性能指标
- HLS Lesson11-c/c++ testbench书写续2
- 【机器学习】实例详解机器学习如何解决问题
- 企业网站架构之Nginx+tomcat+memcached集群
- 企业级Docker Registry开源工具Harbor的介绍以及使用指南
- HLS Lesson8-基本操作
- Windows渗透测试工具:RedSnarf
- HLS Lesson7-复合数据类型
- JavaScript 教程
- JavaScript 编辑工具
- JavaScript 与HTML
- JavaScript 与Java
- JavaScript 数据结构
- JavaScript 基本数据类型
- JavaScript 特殊数据类型
- JavaScript 运算符
- JavaScript typeof 运算符
- JavaScript 表达式
- JavaScript 类型转换
- JavaScript 基本语法
- JavaScript 注释
- Javascript 基本处理流程
- Javascript 选择结构
- Javascript if 语句
- Javascript if 语句的嵌套
- Javascript switch 语句
- Javascript 循环结构
- Javascript 循环结构实例
- Javascript 跳转语句
- Javascript 控制语句总结
- Javascript 函数介绍
- Javascript 函数的定义
- Javascript 函数调用
- Javascript 几种特殊的函数
- JavaScript 内置函数简介
- Javascript eval() 函数
- Javascript isFinite() 函数
- Javascript isNaN() 函数
- parseInt() 与 parseFloat()
- escape() 与 unescape()
- Javascript 字符串介绍
- Javascript length属性
- javascript 字符串函数
- Javascript 日期对象简介
- Javascript 日期对象用途
- Date 对象属性和方法
- Javascript 数组是什么
- Javascript 创建数组
- Javascript 数组赋值与取值
- Javascript 数组属性和方法
- python实现线性回归之lasso回归
- 分页查询 offset 和 limit 和 limit 的区别
- mybatis文件映射之获取参数值时#和$的区别
- python实现线性回归之岭回归
- 操作系统实验之存储管理
- MySQL EXPLAIN 的使用
- mybatis文件映射之关联查询初探(一)
- python实现线性回归之弹性网回归
- 【原创】python倒排索引之查找包含某主题或单词的文件
- python实现逻辑回归
- Linux文件管理参考
- CloudBase Framework丨第一个 Deno 部署工具是如何打造的?
- 关于null通过+" ",String.ValueOf转换为字符串的问题!!!
- Java实现尺取法
- 【自然语言处理】利用朴素贝叶斯进行新闻分类(自己处理数据)