Giter Site home page Giter Site logo

ajiphoto's Introduction

AJIPhoto


title: 结合七牛搭建自己的相册平台

环境

1.Tomcat 7 2.JDK1.8 3.Eclipse JavaEE 4.Mysql 5.七牛

创建数据库

CREATE DATABASE aji DEFAULT CHARSET=utf8;

CREATE TABLE `image` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(16) DEFAULT NULL,
  `url` VARCHAR(255) DEFAULT NULL,
  `date` DATETIME DEFAULT NULL,
  `user_id` INT(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

CREATE TABLE `user` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `username` VARCHAR(16) DEFAULT NULL,
  `password` VARCHAR(16) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

  • 创建完数据库之后,把代码下载下来,配置好运行环境,记得去七牛申请账号后,替换掉里面的key,在FileUtils.java里面找到以下代码填写自己的申请的密匙
  // 七牛密钥
  private static final String ACCESS_KEY = ""; 
  private static final String SECRET_KEY = "";
  // Bucket 名字
  private static final String BUCKET_NAME = "";
  • 开始运行吧!

ajiphoto's People

Contributors

wozhizhizhi avatar

Stargazers

 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.