mirror of
https://github.com/Akomry/sae302_applicom.git
synced 2025-12-06 11:43:53 +00:00
fix(resources): tweaks sur les resources du projet, fonctionne désormais sur la version compilée de l'app
This commit is contained in:
parent
d11df74578
commit
d4e6f47c52
8 changed files with 20 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ import javax.xml.transform.Result;
|
|||
import java.io.File;
|
||||
import java.sql.*;
|
||||
import java.util.UUID;
|
||||
import org.sqlite.JDBC;
|
||||
|
||||
import static rtgre.chat.ChatApplication.LOGGER;
|
||||
|
||||
|
|
@ -13,7 +14,7 @@ public class DatabaseApi {
|
|||
|
||||
public DatabaseApi() {
|
||||
try {
|
||||
this.con = DriverManager.getConnection("jdbc:sqlite:chat/src/main/resources/rtgre/chat/dbase.db");
|
||||
this.con = DriverManager.getConnection("jdbc:sqlite:target/dbase.db");
|
||||
this.stmt = con.createStatement();
|
||||
initDB(con);
|
||||
LOGGER.info("Database connected!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue