pom.xml经常用到去写的坐标
tomcat7插件
1 <plugin> 2 <groupId>org.apache.tomcat.maven</groupId> 3 <artifactId>tomcat7-maven-plugin</artifactId> 4 </plugin>
jdk17坐标,因为不适配原因,我要去自己去写个坐标
1 <build> 2 <plugins> 3 <!-- 配置当前项目的jdk版本信息 --> 4 <plugin> 5 <groupId>org.apache.maven.plugins</groupId> 6 <artifactId>maven-compiler-plugin</artifactId> 7 <version>3.8.1</version> 8 <configuration> 9 <source>17</source> 10 <target>17</target> 11 <encoding>UTF-8</encoding> 12 </configuration> 13 </plugin> 14 </build>
mysql坐标
1 <dependency> 2 <groupId>mysql</groupId> 3 <artifactId>mysql-connector-java</artifactId> 4 <version>8.0.21</version> 5 </dependency>