mirror of https://github.com/bvn13/JIrcBot.git
added dependencies for using MySQL
parent
d40d1a9bc3
commit
c776a3702c
|
@ -68,6 +68,7 @@
|
|||
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:4.3.13.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-tx:4.3.13.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.postgresql:postgresql:42.1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:6.0.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.googlecode.json-simple:json-simple:1.1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.objecthunter:exp4j:0.4.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jsoup:jsoup:1.11.2" level="project" />
|
||||
|
|
10
pom.xml
10
pom.xml
|
@ -64,7 +64,7 @@
|
|||
|
||||
|
||||
|
||||
<!-- Dependencies for Hibernate and ORM -->
|
||||
<!-- Dependencies for Database, Hibernate and ORM -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||||
|
@ -85,12 +85,18 @@
|
|||
<artifactId>spring-orm</artifactId>
|
||||
<version>${spring.orm.version}</version>
|
||||
</dependency>
|
||||
<!--PostgreSQL-->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>42.1.1</version>
|
||||
</dependency>
|
||||
<!--org.postgresql:postgresql:42.1.1-->
|
||||
<!--MySQL-->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>6.0.6</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -4,11 +4,18 @@ name: jircbot
|
|||
config: config.json
|
||||
|
||||
spring:
|
||||
# for PostgreSQL
|
||||
dataSource:
|
||||
driverClassName: org.postgresql.Driver
|
||||
url: jdbc:postgresql://localhost:5432/jircbot
|
||||
username: jircbot
|
||||
password: jircbotpass
|
||||
# for MySQL
|
||||
# dataSource:
|
||||
# driverClassName: com.mysql.jdbc.Driver
|
||||
# url: jdbc:mysql://localhost:5432/jircbot
|
||||
# username: jircbot
|
||||
# password: jircbotpass
|
||||
|
||||
hibernate:
|
||||
dialect: org.hibernate.dialect.PostgreSQLDialect
|
||||
|
|
Loading…
Reference in New Issue