Code Monkey home page Code Monkey logo

spring-mvc-mini's Introduction

Spring-mvc-mini是一个完整的,轻量、简单的Java项目,基于Spring MVC. 里面有基本的增删改查的功能。而且无需修改任何内容,就可以直接跑起来。

另外我有一个Spring MVC的RESTful项目,数据库是Mysql,请参看:https://github.com/hot13399/spring-mvc-REST


在这个项目里主要实现了以下技术:

  • spring-webmvc
  • svnkit
  • jgit
  • javax.mail
  • jasypt
  • dom4j
  • spring scheduler

如何运行:

在Windows的CMD:

$ cd spring-mvc-mini
$ mvn tomcat7:run [-Dmaven.tomcat.port=<port no.>] (In case 8080 is busy] 

通过浏览器打开:http://localhost:8080/spring-mvc-mini

如果你想要学习或贡献和这个项目:

就通过maven把它build成一个IDE项目,执行以下命令,打开CMD:

$ cd spring-mvc-mini
$ mvn eclipse:eclipse or mvn idea:idea

通过Eclipse或IDEA导入即可。

Note:

如果你要在Linux环境运行,以下的文件需要修改。

$ spring-oss-mini\src\main\webapp\WEB-INF\spring\appServlet\servlet-context.xml:<context:property-placeholder 
$ location="file:/opt/web/spring-mvc-mini/resources/application.properties"/>
$ spring-oss-mini\src\main\resources\logback.xml
$ spring-oss-mini\resources\application.properties

最后通过Maven build一个war包部署即可。


Spring-mvc-mini is a mini project using Spring MVC.

In this project, you can see the code of:

  • spring-webmvc
  • svnkit
  • javax.mail
  • jasypt
  • dom4j
  • spring scheduler

To run the application: From the command line with Maven: $ cd spring-mvc-mini $ mvn tomcat7:run [-Dmaven.tomcat.port=] (In case 8080 is busy]

Access the deployed web application at: http://localhost:8080/spring-mvc-mini

To contribute to this project: In your preferred IDE such as Eclipse: $ cd spring-mvc-mini $ mvn eclipse:eclipse

Import spring-mvc-mini as a Maven Project

If you want to deploy this project to Linux server, you might need to edit conf files:

$ spring-oss-mini\src\main\webapp\WEB-INF\spring\appServlet\servlet-context.xml:<context:property-placeholder
$ location="file:/opt/web/spring-mvc-mini/resources/application.properties"/>
$ spring-oss-mini\src\main\resources\logback.xml
$ spring-oss-mini\resources\application.properties

spring-mvc-mini's People

Contributors

f4bwdp6a6w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-mvc-mini's Issues

resources/application.properties

hi,where is the resources/application.properties ?
i start this project ,but there is error that "Caused by: java.io.FileNotFoundException: resources\application.properties"
thanks .

clean code

refactor this project as clean code rules.

spring-mvc-mini这个项目是想做什么?

你好,我是spring-mvc的初学者,最近运行了spring-mvc-mini这个项目,运行过程中总是碰到一些问题,请问一下作者这个项目是做邮件的什么功能?不是很懂,希望作者讲一讲,谢谢!

关于这个项目的问题

有些不懂的地方:
1.mvn tomcat7:run [-Dmaven.tomcat.port=]这句执行不了,用startup才能启动。
2.build成IDE项目之后部署到服务器运行报500错误,提示找不到resources\application.properties
希望作者能帮忙解答下,谢谢!

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.