GithubHelp home page GithubHelp logo

ly774508966 / cardenglishgamer_server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mengtest/cardenglishgamer_server

0.0 2.0 0.0 106 KB

spring mvc + spring + mybatis + netty(使用protostuf)

Java 88.44% HTML 7.46% JavaScript 4.10%

cardenglishgamer_server's Introduction

一、说明

由于后面的一些功能都是突发奇想

把目前了解的一些技术尽量用到里面去

可能会有点乱,但是里面都写了比较详细的注释

后期可能注释的文档会详细一点,之前没有注意到

二、通过命令行导入数据库

  1. 查看所有的数据库
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| employees          |
| mysql              |
| performance_schema |
| ssm                |
| sys                |
+--------------------+
6 rows in set (0.00 sec)
  1. 如果不存在【booksystem】则创建
mysql> create database booksystem;
Query OK, 1 row affected (0.00 sec)
  1. 选择数据库
mysql> use booksystem;
Database changed
  1. 设置数据库编码
mysql> set names utf8;
Query OK, 0 rows affected (0.00 sec)
  1. 导入数据库文件
mysql> source /home/hisen/dl/hisen/booksystem.sql
  1. 查看数据库拥有的表
mysql> show tables;
+----------------------+
| Tables_in_booksystem |
+----------------------+
| appointment          |
| book                 |
| user                 |
+----------------------+
3 rows in set (0.00 sec)
  1. 完毕

三、开发过程中的感想

  1. 目前aop没有具体的用处
  2. AOP可以用的地方:参数校验,错误拦截,日志记录
  3. 以后尽量少用jsp,不利于前后端分离(SOA:面向服务)
  4. 为了安全尽量把bean分开。入参:form、出参:VO、DAO层:DTO

四、目录结构

hisen@hisen-pc:~/IdeaProjects/SSM_BookSystem/BookSystem_V2/src$ tree
.
├── main
│   ├── java
│   │   └── com
│   │       └── hisen
│   │           ├── aop
│   │           │   ├── GetMethodInfoHandler.java
│   │           │   └── TimeHandler.java
│   │           ├── dao
│   │           │   ├── AppointmentMapper.java
│   │           │   ├── BookDao.java
│   │           │   ├── form
│   │           │   │   └── AppointmentForm.java
│   │           │   ├── RedisCache.java
│   │           │   ├── RedisCacheTransfer.java
│   │           │   ├── sql
│   │           │   │   └── booksystem.sql
│   │           │   └── UserMapper.java
│   │           ├── entity
│   │           │   ├── AppointmentExample.java
│   │           │   ├── Appointment.java
│   │           │   ├── Book.java
│   │           │   ├── UserExample.java
│   │           │   ├── User.java
│   │           │   └── UserKey.java
│   │           ├── service
│   │           │   ├── AppointmentService.java
│   │           │   ├── BookService.java
│   │           │   └── impl
│   │           │       ├── AppointmentServiceImpl.java
│   │           │       └── BookServiceImpl.java
│   │           └── web
│   │               ├── AppointmengtController.java
│   │               └── BookController.java
│   ├── resources
│   │   ├── generatorConfig.xml
│   │   ├── jdbc.properties
│   │   ├── logback.xml
│   │   ├── mapper
│   │   │   ├── AppointmentMapper.xml
│   │   │   ├── BookMapper.xml
│   │   │   └── UserMapper.xml
│   │   ├── mybatis-config.xml
│   │   ├── redis.properties
│   │   └── spring
│   │       ├── spring-aop.xml
│   │       ├── spring-dao.xml
│   │       ├── spring-service.xml
│   │       └── spring-web.xml
│   └── webapp
│       ├── add.html
│       ├── index.html
│       ├── static
│       │   └── js
│       │       ├── jquery-3.1.1.min.js
│       │       └── jquery.paginate.js
│       └── WEB-INF
│           ├── jsp
│           │   ├── detail.jsp
│           │   └── list.jsp
│           ├── templates
│           │   ├── booklist.html
│           │   ├── detail.html
│           │   ├── footer.html
│           │   ├── header.html
│           │   ├── list.html
│           │   ├── page.html
│           │   └── readingList.html
│           └── web.xml
└── test
    ├── AppointmentServiceImplTest.java
    ├── BaseTest.java
    └── UserDaoTest.java

22 directories, 50 files

cardenglishgamer_server's People

Contributors

r893803517 avatar

Watchers

James Cloos avatar  avatar

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.