Skip to content

guoyu07/WebTemplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A javaee web template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 69.0%
  • Java 24.2%
  • JavaScript 5.7%
  • HTML 1.1%