Git Product home page Git Product logo

webtemplate's Introduction

WebTemplate

A javaee web template.

Requirements

  • JDK
  • MySQL
  • Maven

Usage

Using IntelliJ IDEA to open this project, then open the right tab named Maven Projects, find parent/Lifecycle, double click clean, then double click install, finally go to front/Plugins/jetty, double click jetty:run to run this web application. Click jetty:stop to stop this web application.

This web application now can be accessed by going to 127.0.0.1:8080 in your browser.

Web Pages

index

index2

boy

girl

bottom

middle

404

missing

Modifies

Open generator/src/main/resources/generatorConfig.xml, find

<jdbcConnection driverClass="com.mysql.jdbc.Driver"
                connectionURL="jdbc:mysql://127.0.0.1/database"
                userId="userId"
                password="password">
</jdbcConnection>
.........
.........
<table schema="database" tableName="users" domainObjectName="User"/>

change your database name、userId、password and table name, then open the right tab named Maven Projects, find generator/Plugins/mybatis-generator, double click mybatis-generator:generate to generate DAO.

Open front/src/main/resources/application.properties, find

jdbc.url=jdbc:mysql://127.0.0.1:3306/database?characterEncoding=UTF-8
jdbc.username=username
jdbc.password=password

change your database name、username and password.

webtemplate's People

Contributors

leftthomas 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.