GithubHelp home page GithubHelp logo

sport_service's Introduction

描述

一个基于Java Web的服务器端程序,实现了对应Android程序所需的接口。其对应的Android程序源码为Sport_Android

#技术栈 Spring 在项目中充当了管理容器的角色

Spring MVC 提供了构建Web应用程序的全能MVC模块

MyBatis 一个支持普通SQL查询,存储过程和高级映射的优秀持久层框架

Redis 一个基于Key-Value的内存数据库

#配置信息

数据库配置

本项目使用MySQL数据库,其数据库建表语句为

-- User表
create table tal_user(
id int(11) unsigned not null auto_increment,
name varchar(50) not null unique,
password varchar(50) not null,
nickname varchar(50) not null,
token varchar(50),
stime TIMESTAMP,
primary key(id)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8;

-- 运动表
create table tal_sport(
id int(11) unsigned not null auto_increment,
userid int(11) unsigned not null,
primary key(id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;

-- 运动信息表
create table tal_sport_message(
id int(11) unsigned not null auto_increment,
sportId int(11) unsigned,
posx float,
posy float,
stime TIMESTAMP,
location varchar(100),
primary key (id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;

-- 资讯表
create table tal_news(
id int(11) unsigned not null auto_increment,
name varchar(50) not null,
simplecontent varchar(100),
thumbnail varchar(255),
url varchar(255),
stime TIMESTAMP,
primary key (id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;

数据库连接配置

连接数据库的配置信息存储在项目的/src/dbconfig.properties中,需将其改成自己的数据库连接配置。

需要注意的是,本项目使用Meven进行项目构建,所以在运行项目之前需要确保Maven可以正常使用。

sport_service's People

Contributors

happyheng avatar liuhengpianobar avatar

Watchers

James Cloos avatar Jason 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.