当前位置:网站首页><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
边栏推荐
- 2022年Android 面经总结(附含面试题 | 源码 | 面试资料)
- 【愚公系列】2022年07月 Go教学课程 020-Go容器之数组
- ThreadLocal
- matplotlib ax bar color Set the color, transparency, label legend of the ax bar
- 几款永久免费内网穿透,好用且简单(内网穿透教程)
- Bika LIMS 开源LIMS集—— SENAITE的使用(检测流程)
- 多主复制下处理写冲突(1)-同步与异步冲突检测及避免冲突
- Bika LIMS open source LIMS set - use of SENAITE (detection process)
- Multi-datacenter operation and detection of concurrent writes
- Handling write conflicts under multi-master replication (3) - Convergence to a consistent state and custom conflict resolution logic
猜你喜欢
AcWing 1282. Search Keyword Problem Solution ((AC Automata) Trie+KMP)+bfs)
How programmers learn open source projects, this article tells you
All-platform GPU general AI video supplementary frame super-score tutorial
2022年Android 面经总结(附含面试题 | 源码 | 面试资料)
Golang 小数操作之判断几位小数点与四舍五入
中文编码的设置与action方法的返回值
selenium的常见方法及使用
每日练习------随机产生一个1-100之间的整数,看能几次猜中。要求:猜的次数不能超过7次,每次猜完之后都要提示“大了”或者“小了”。
学生管理系统第一天:完成登录退出操作逻辑 PyQt5 + MySQL5.8
杰理语音芯片ic玩具芯片ic的介绍_AD14NAD15N全系列开发
随机推荐
Mariabackup implements incremental data backup for Mariadb 10.3
MySQL---基本的select语句
useragent在线查找
如何识别假爬虫?
Go basic part study notes
flyway的快速入门教程
【Yugong Series】July 2022 Go Teaching Course 022-Dictionary of Go Containers
flowable工作流所有业务概念
Write a database document management tool based on WPF repeating the wheel (1)
After Effects 教程,如何在 After Effects 中调整过度曝光的快照?
21.支持向量机—核函数的介绍
抖音根据关键词取视频列表 API
Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong
自动化测试—web自动化—selenium初识
Flink_CDC搭建及简单使用
Flutter set the background color of the statusbar status bar and APP method (AppBar) internal consistent color.
Get Douyin Video Details API
leetcode:6135. 图中的最长环【内向基环树 + 最长环板子 + 时间戳】
MySQL---operator
Golang——从入门到放弃