Code Monkey home page Code Monkey logo

actor-search-example's Introduction

概要

MySQLとSpring Bootを使用した簡単な検索ができるWebアプリケーションです。 このwebアプリケーションは「俳優」の情報を扱い、データの一覧表示、登録、削除を行います。

開発環境

下記の環境で開発および動作確認を行いました。

  • Windows7 (64bit)
  • Java 1.8.0_60
  • Spring Boot 1.2.5
  • thymeleaf 2.1.4
  • logback 1.1.3
  • MySQL CE 5.6
  • Eclipse 4.4
  • Maven 3.3.3

事前準備

サンプルデータを下記の通り準備します。

  • データベース: sample_db
  • ユーザー: test_user
  • テーブル: actor, prefecture

データベース、ユーザー、テーブル、サンプルデータを作成するsqlは、resources/dataにあります。

テーブル定義

使用するテーブルの定義は下記の通りです。

actor

俳優の情報を持つテーブルです。

field data Type description
id 整数 ID
name 文字列 名前
height 整数 身長
blood 文字列 血液型
birthday 日付 誕生日
birthplace_id 整数 出身地ID
update_at 日付 データ更新日

prefecture

都道府県マスタです。

field data Type description
id 整数 ID
name 文字列 名前

実行

MySQLサーバーを起動した状態で、下記のmvnコマンドでアプリケーションを実行します。

> mvn spring-boot:run

http://localhost:9000/actor

actor-search-example's People

Contributors

rubytomato avatar yukihane avatar

Watchers

 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.