Code Monkey home page Code Monkey logo

springboot's Introduction

工程创建

开发SpringBoot项目,推荐使用Intellij IDEA,Java开发的新一代神器。当然,作为研发人员,我们要尊重他人的研发成果,因此,推荐使用正版。

下载链接为:http://www.jetbrains.com/idea/download/,Intellij IDEA提供了学生免费版,只要有学生邮箱就能免费使用Ultimate版本。

首先新建一个工程,选择Spring Initializer,IDEA为我们提供了强大的项目构建模块。点击下一步。

这里我们采用Maven管理我们整个项目,填写好对应的group id、artifact id项目名称,点击下一步。

仅选择Web项目,点击下一步。

选择项目存储路径,点击下一步。

创建好之后的项目中有几个maven相关的无用的文件夹和文件,我们可以先将这几个文件删除。

Springboot的工程结构如上图所示,包含以下主要部分:

  • SpringbootApplication:项目的起始点,通过@SpringBootApplication注解自动load项目配置
  • resource目录,下面存放web项目的一些静态资源、模板资源以及配置文件
  • test文件夹,存放单元测试的相关资源
  • pom.xml文件,maven项目的管理资源。

至此,项目自动创建完毕。

springboot's People

Contributors

lrenjundk avatar

Watchers

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