当前位置:网站首页><artifactId>ojdbc8</artifactId>「建议收藏」
<artifactId>ojdbc8</artifactId>「建议收藏」
2022-07-31 18:20:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
spring-boot-starter-parent作用 在pom.xml中引入spring-boot-start-parent,spring官方的解释叫什么stater poms,它可以提供dependency management,也就是说依赖管理,引入以后在申明其它dependency的时候就不需要version了,后面可以看到。 spring-boot-starter-web作用 springweb 核心组件 spring-boot-maven-plugin作用 如果我们要直接Main启动spring,那么以下plugin必须要添加,否则是无法启动的。如果使用maven 的spring-boot:run的话是不需要此配置的。(我在测试的时候,如果不配置下面的plugin也是直接在Main中运行的。)
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.7.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.oracle.ojdbc</groupId>
<artifactId>ojdbc8</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127512.html原文链接:https://javaforall.cn
边栏推荐
- MySQL---基本的select语句
- 20.支持向量机—数学原理知识
- adb shell error error: device unauthorized
- 中文编码的设置与action方法的返回值
- 如何识别假爬虫?
- 【NLP】什么是模型的记忆力!
- UVM RAL模型和内置seq
- Handling Write Conflicts under Multi-Master Replication (1)-Synchronous and Asynchronous Conflict Detection and Conflict Avoidance
- 【网络通信三】研华网关Modbus服务设置
- 抖音根据关键词取视频列表 API
猜你喜欢

Combinatorics Notes (6) Associative Algebra of Locally Finite Partially Ordered Sets, Möbius Inversion Formula

如何识别假爬虫?

selenium的常见方法及使用

Chinese encoding Settings and action methods return values
Cache and Database Consistency Solutions

Golang——从入门到放弃

学生管理系统第一天:完成登录退出操作逻辑 PyQt5 + MySQL5.8

【网络通信三】研华网关Modbus服务设置

如何才能真正的提高自己,成为一名出色的架构师?

自动化测试—web自动化—selenium初识
随机推荐
MySQL---基本的select语句
MATLAB程序设计与应用 2.4 MATLAB常用内部函数
Golang 小数操作之判断几位小数点与四舍五入
【NLP】什么是模型的记忆力!
微信小程序的路由拦截
Automated testing - web automation - first acquaintance with selenium
MySQL---operator
MySQL---排序与分页
Kotlin coroutines: continuation, continuation interceptor, scheduler
IP协议从0到1
Go basic part study notes
2022年Android 面经总结(附含面试题 | 源码 | 面试资料)
MySQL---子查询
Last write wins (discards concurrent writes)
go基础部分学习笔记记录
All-platform GPU general AI video supplementary frame super-score tutorial
leetcode:6135. 图中的最长环【内向基环树 + 最长环板子 + 时间戳】
IP protocol from 0 to 1
Apache EventMesh 分布式事件驱动多运行时
MySQL---sort and pagination