当前位置:网站首页><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
边栏推荐
猜你喜欢

程序员如何学习开源项目,这篇文章告诉你

How can we improve the real yourself, become an excellent architect?

TestCafe之如何进行调试

All-platform GPU general AI video supplementary frame super-score tutorial

After Effects 教程,如何在 After Effects 中调整过度曝光的快照?

Jiuqi ny3p series voice chip replaces the domestic solution KT148A, which is more cost-effective and has a length of 420 seconds

Chinese encoding Settings and action methods return values

1161. 最大层内元素和 : 层序遍历运用题

架构师04-应用服务间加密设计和实践

35 MySQL interview questions and diagrams, this is also easy to understand
随机推荐
Istio介绍
go记录之——slice
matplotlib ax bar color 设置ax bar的颜色、 透明度、label legend
Tkinter 入门之旅
Intelligent bin (9) - vibration sensor (raspberries pie pico implementation)
【luogu P8326】Fliper (Graph Theory) (Construction) (Eulerian Circuit)
C# 之 扑克游戏 -- 21点规则介绍和代码实现
【Yugong Series】July 2022 Go Teaching Course 022-Dictionary of Go Containers
adb shell error error: device unauthorized
useragent怎么获取
【源码解析】BeanFactory和FactoryBean
使用 Flutter 和 Firebase 制作!计数器应用程序
【luogu P8326】Fliper(图论)(构造)(欧拉回路)
MySQL---基本的select语句
INeuOS industrial Internet operating system, the equipment operational business and "low code" form development tools
迁移学习——Domain Adaptation
Jiuqi ny3p series voice chip replaces the domestic solution KT148A, which is more cost-effective and has a length of 420 seconds
Masterless Replication System (3)-Limitations of Quorum Consistency
[TypeScript]OOP
iNeuOS工业互联网操作系统,设备运维业务和“低代码”表单开发工具