Skip to content

Instantly share code, notes, and snippets.

@cristofersousa
Created October 8, 2024 07:45
Show Gist options
  • Select an option

  • Save cristofersousa/fe83bf0c374a0b68eab566c53ebcf4a7 to your computer and use it in GitHub Desktop.

Select an option

Save cristofersousa/fe83bf0c374a0b68eab566c53ebcf4a7 to your computer and use it in GitHub Desktop.
Configurando mySQL no projeto com Maven
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.archetypes</groupId>
<artifactId>PetShopApp</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- Dependência do JDBC do MySQL -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.33</version>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment