美文网首页
spring boot的用法

spring boot的用法

作者: 1367356 | 来源:发表于2017-11-24 20:57 被阅读0次

1:创建主文件

package com.liyafei.controller;

import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication

public class SpringBootDemoApplication {

public static void main(String[] args) {

SpringApplication.run(SpringBootDemoApplication.class, args);

}

}

2:在pom文件中添加依赖

org.springframework.bootspring-boot-starter-parent1.3.4.RELEASEorg.springframework.bootspring-boot-starter-web

相关文章

网友评论

      本文标题:spring boot的用法

      本文链接:https://www.haomeiwen.com/subject/doafbxtx.html