Explorar el Código

switched to mySQL

Rachelle hace 6 años
padre
commit
dc98498fe0

+ 7
- 2
MyPassionProject/pom.xml Ver fichero

@@ -48,9 +48,14 @@
48 48
 			<artifactId>spring-boot-devtools</artifactId>
49 49
 			<scope>runtime</scope>
50 50
 		</dependency>
51
+		<!--<dependency>-->
52
+			<!--<groupId>com.h2database</groupId>-->
53
+			<!--<artifactId>h2</artifactId>-->
54
+			<!--<scope>runtime</scope>-->
55
+		<!--</dependency>-->
51 56
 		<dependency>
52
-			<groupId>com.h2database</groupId>
53
-			<artifactId>h2</artifactId>
57
+			<groupId>mysql</groupId>
58
+			<artifactId>mysql-connector-java</artifactId>
54 59
 			<scope>runtime</scope>
55 60
 		</dependency>
56 61
 		<dependency>

+ 23
- 5
MyPassionProject/src/main/resources/application.properties Ver fichero

@@ -1,8 +1,26 @@
1 1
 # H2
2
-spring.h2.console.enabled=true
3
-spring.h2.console.path=/h2
2
+
3
+#spring.h2.console.enabled=true
4
+#spring.h2.console.path=/h2
5
+
4 6
 # Datasource
5
-spring.datasource.url=jdbc:h2:file:~/test
6
-spring.datasource.username=sa
7
+
8
+#spring.datasource.url=jdbc:h2:file:~/test
9
+#spring.datasource.username=sa
10
+#spring.datasource.password=
11
+#spring.datasource.driver-class-name=org.h2.Driver
12
+
13
+
14
+
15
+spring.datasource.url=jdbc:mysql://localhost:3306/passionProject?useSSL=false
16
+spring.datasource.username=root
7 17
 spring.datasource.password=
8
-spring.datasource.driver-class-name=org.h2.Driver
18
+
19
+# The SQL dialect makes Hibernate generate better SQL for the chosen database
20
+spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
21
+
22
+# Hibernate ddl auto (create, create-drop, validate, update)
23
+spring.jpa.hibernate.ddl-auto = update
24
+
25
+logging.level.org.hibernate.SQL=DEBUG
26
+logging.level.org.hibernate.type=TRACE

BIN
MyPassionProjectClient/src/assets/imgs/avatar.png Ver fichero


+ 1
- 1
MyPassionProjectClient/src/pages/profile/profile.html Ver fichero

@@ -19,7 +19,7 @@
19 19
       <strong>My Profile</strong>
20 20
     </ion-card-header>
21 21
 
22
-    <img src="img.png"/>
22
+    <img src="/assets/imgs/avatar.png"/>
23 23
 
24 24
     <ion-card-content>
25 25
       <ion-card-title>