Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 55fd14d

Browse files
author
Rajeev Kumar Singh
committed
app properties
1 parent 8b7d8b5 commit 55fd14d

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

‎src/main/java/com/example/easynotes/model/Note.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.example.easynotes.model;
22

3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
34
import org.hibernate.validator.constraints.NotBlank;
45
import org.springframework.data.annotation.CreatedDate;
56
import org.springframework.data.annotation.LastModifiedDate;
@@ -14,6 +15,8 @@
1415
@Entity
1516
@Table(name = "notes")
1617
@EntityListeners(AuditingEntityListener.class)
18+
@JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
19+
allowGetters = true)
1720
public class Note {
1821
@Id
1922
@GeneratedValue(strategy = GenerationType.AUTO)
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## Server Properties
2-
server.port = 8080
3-
4-
51
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
62
spring.datasource.url = jdbc:mysql://localhost:3306/notes_app?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false
73
spring.datasource.username = root
@@ -14,7 +10,4 @@ spring.datasource.password = root
1410
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
1511

1612
# Hibernate ddl auto (create, create-drop, validate, update)
17-
spring.jpa.hibernate.ddl-auto = update
18-
19-
## Jackson Properties
20-
spring.jackson.date-format = yyyy-MM-dd HH:mm:ss
13+
spring.jpa.hibernate.ddl-auto = update

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /