Giter Site home page Giter Site logo

java_maven_example's Introduction

Java Maven Example

Maven 测试程序

Maven 的安装非常简单, 网上搜下成堆的内容. 项目所需的jar包在pom.xml中配置, 这也重点之一.

本例所需jar包已放入lib下, 也可以不用Maven下载所需的jar包, 让我们明白Maven的使用才是重要的.

功能说明

1 前端 用户注册/登录/新闻列表/详情/最新会员等

2 后端 管理员登录/简略统计/添加/管理管理员/ 新闻添加/编辑/管理等

部署说明

此程序需要以下环境支持:

mysql5.1 及以上

jdk 1.7 及以上

tomcat 7

memcache 1.2.6及以上

redis 2.6及以上

1 新建数据库 mydatabase, 将mydatabase.sql导入

2 更改src/main/resources/config.properties 的数据库连接信息:ip/username/password 等

3 在hosts里绑定域名 127.0.0.1 www.blog.com

4 tomcat7 中增加配置:

<Host name="www.blog.com"  appBase="" unpackWARs="true" autoDeploy="true">
	<Context path="" docBase="E:/dev-www/java/maven_example/src/main/webapp" reloadable="true"/>  
</Host>
docBase 改成你的目录

5 重启tomcat, 在浏览器里输入 http://www.blog.com:8080/index.htm

祝你好运 :)

如有疑问, 可联系 [email protected]

页面截图

首页

管理员登录

后台首页

java_maven_example's People

Contributors

szxiaokang avatar

Watchers

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