spring boot 基本依赖引入
来源:互联网 发布:程序员离职 编辑:程序博客网 时间:2024/06/06 03:22
1.基础核心依赖
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.1.RELEASE</version></parent>
2.web应用依赖
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
3.使用freemark依赖(不和web应用依赖共存)
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
</dependencies>
模版 templates/model.ftl
4.spring boot 应用启动入口(注解)
@SpringBootApplication
public class StartApplication
{
public static void main(String[] args)
{
SpringApplication.run(StartApplication.class,args);
}
}
阅读全文
0 0
- spring boot 基本依赖引入
- Spring boot引入引入fastjson
- 面试问题项目已经依赖了一个parent,怎么引入spring boot依赖
- spring-boot引入log4j
- spring boot 依赖注入
- Spring Boot 依赖注入
- Spring Boot 依赖POM
- maven项目引入spring boot依赖之后filter不生效的问题
- spring boot 文件引入方式
- spring boot引入本地jar
- netty中引入spring-boot
- spring-boot中引入thymeleaf
- Spring Boot + Gradle 依赖管理
- spring boot常用的依赖
- Spring Boot启动依赖分析
- spring 基本依赖
- spring boot 基本注解
- maven 引入/导入 添加 spring 3 依赖
- zookeeper详解
- 伪代码阅读与学习
- intent用途汇总
- chrome启用跨域正确方法
- Python将被加入高考科目?你怎么看?
- spring boot 基本依赖引入
- TensorFlow Serving和Kubernetes 服务Inception模型
- Hive基础sql语法
- 阿里云服务器ECS 第二篇:Java运行环境搭建
- AttributeError: module 'tensorflow.python.platform.flags' has no attribute 'mark_flag_as_required'
- 神经网络基本原理-4.4神经网络之权重初始化方法
- 实训第五天
- 一起有组织的网络攻击事件预警 | 内附企业网络安全建设实用指南
- dpkg ---- apt-get ------ aptitude 三种方式的区别 及命令格式