Skip to content

Commit 18ae367

Browse files
committed
changes ip for connection to localhost
1 parent 7d12d25 commit 18ae367

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spring:
2424
one-indexed-parameters: false
2525
max-page-size: 2000
2626
r2dbc:
27-
url: r2dbcs:pool:mysql://192.168.1.177:3306/archetype
27+
url: r2dbcs:pool:mysql://127.0.0.1:3306/archetype
2828
username: ${mysql_username}
2929
password: ${mysql_password}
3030
pool:

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
</dependency>
4747

4848

49-
<!--
49+
5050
<dependency>
5151
<groupId>javax.persistence</groupId>
5252
<artifactId>javax.persistence-api</artifactId>
5353
</dependency>
54-
-->
54+
5555

5656
<dependency>
5757
<groupId>org.mapstruct</groupId>

src/main/java/com/github/michaelsteven/archetype/springboot/webflux/items/model/ItemEntity.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package com.github.michaelsteven.archetype.springboot.webflux.items.model;
22

3+
import javax.persistence.Column;
4+
import javax.persistence.Entity;
5+
import javax.persistence.GeneratedValue;
6+
import javax.persistence.GenerationType;
37
import org.springframework.data.annotation.Id;
48
import org.springframework.data.relational.core.mapping.Table;
59

@@ -11,14 +15,14 @@
1115
*/
1216
@Data
1317
@NoArgsConstructor
14-
//@Entity
18+
@Entity
1519
@Table("items")
1620
public class ItemEntity extends Auditable {
1721

1822
/** The id. */
1923
@Id
20-
//@GeneratedValue(strategy = GenerationType.IDENTITY)
21-
//@Column(name = "id", unique = true, nullable = false)
24+
@GeneratedValue(strategy = GenerationType.IDENTITY)
25+
@Column(name = "id", unique = true, nullable = false)
2226
private Long id;
2327

2428
/** The name. */

0 commit comments

Comments
 (0)