1 Star 0 Fork 0

Gardel / PetManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Pet's Home Adoption -- Pets Manager Cli (宠物之家收养所宠物管理系统控制台)

前言

这是一个命令行实现、基于文件系统的增删改查项目。

不知道你一开始学习 Java 的时候有没有经常遇到这样的作业,反正我是遇到太多了。

这次我用三种数据保存方法写了这个功能。需要的同学拿去修改一下就能用。

功能

主要功能:

  • 登录注册
  • 注销改密
  • 数据增删改查

保存方法:

  • 保存为可读文本
  • 保存为对象序列化二进制流
  • 保存为 Json 文件

使用方法

本项目含 3 种序列化方式,指定不同的实现对应主类即可。

构建 jar 包:

mvn package

运行不同实现:(默认实现为 json 文件)

java -cp target/PetManager-1.0-SNAPSHOT-jar-with-dependencies.jar cn.sunxinao.pm.text.Main # 纯文本保存
java -cp target/PetManager-1.0-SNAPSHOT-jar-with-dependencies.jar cn.sunxinao.pm.binary.Main # 二进制保存
java -cp target/PetManager-1.0-SNAPSHOT-jar-with-dependencies.jar cn.sunxinao.pm.json.Main # json 保存
java -jar target/PetManager-1.0-SNAPSHOT-jar-with-dependencies.jar # 默认为 json 实现
Copyright (c) 2021 sunxinao@hotmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Java IO流 控制台增删改查练习项目 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/gardel/pet-manager.git
git@gitee.com:gardel/pet-manager.git
gardel
pet-manager
PetManager
master

搜索帮助