diff --git a/pom.xml b/pom.xml index 2a2b2d0..72a2a7e 100755 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.4.2 + 3.5.0 com.codenetworkz @@ -42,6 +42,11 @@ org.springframework.boot spring-boot-starter-validation + + com.h2database + h2 + runtime + org.springframework.boot spring-boot-starter-web @@ -65,11 +70,11 @@ micrometer-registry-prometheus runtime - - com.mysql - mysql-connector-j - runtime - + + + + + org.springframework.boot spring-boot-configuration-processor diff --git a/src/main/java/com/codenetworkz/portfoliowebsite/crons/MailSenderCron.java b/src/main/java/com/codenetworkz/portfoliowebsite/crons/MailSenderCron.java index 9a13e84..13d3fef 100755 --- a/src/main/java/com/codenetworkz/portfoliowebsite/crons/MailSenderCron.java +++ b/src/main/java/com/codenetworkz/portfoliowebsite/crons/MailSenderCron.java @@ -41,7 +41,7 @@ public class MailSenderCron { //ervery 30 days cron run in backgraond // @Scheduled(cron = "0 0 0 1/2 * *") - @Scheduled(cron = "0 */2 * * * *") + // @Scheduled(cron = "0 */2 * * * *") public void sendPendingMessageEmail() throws InternalServerException{ LocalDate last2Day = LocalDate.now().minusDays(2); List sendMails = contactFormRepository.findAllBySendMessageAndCreateAtIsBefore(Status.No, last2Day); diff --git a/src/main/java/com/codenetworkz/portfoliowebsite/models/ContactForm.java b/src/main/java/com/codenetworkz/portfoliowebsite/models/ContactForm.java index 6d381ce..2a1ae5d 100755 --- a/src/main/java/com/codenetworkz/portfoliowebsite/models/ContactForm.java +++ b/src/main/java/com/codenetworkz/portfoliowebsite/models/ContactForm.java @@ -25,7 +25,7 @@ public class ContactForm extends BaseModel { @Email(message = "enter valid Email ID") private String email; - @Size(min = 8, max = 12, message = "Phone No should be more then 8 and less then 12 character required.") + @Size(min = 10, max = 12, message = "Phone No should be more then 8 and less then 12 character required.") private String phone; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 70c8a97..8b90dfd 100755 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,6 +1,6 @@ spring.application.name=portfolio-website spring.application.version=0.0.1 -server.port=8081 +server.port=8080 spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.suffix=.html @@ -8,22 +8,26 @@ spring.thymeleaf.mode=HTML spring.thymeleaf.encoding=UTF-8 spring.thymeleaf.cache=false -spring.datasource.url=jdbc:mysql://127.0.0.1:3306/portfolio_db -spring.datasource.username=root -spring.datasource.password=Pa$$w0rd -spring.jpa.hibernate.ddl-auto=update -spring.jpa.show-sql=true -spring.datasource.hikari.connection-timeout=60000 - +#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/portfolio_db +#spring.datasource.username=root +#spring.datasource.password=Pa$$w0rd +#spring.jpa.hibernate.ddl-auto=update +#spring.jpa.show-sql=true +#spring.datasource.hikari.connection-timeout=60000 +spring.datasource.url=jdbc:h2:mem:testdb +spring.datasource.driverClassName=org.h2.Driver +spring.datasource.username=sa +spring.datasource.password=password +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.mail.host=smtp.gmail.com spring.mail.port=587 spring.mail.username=dholerobin@gmail.com -spring.mail.password=myqc care axin tlzt +spring.mail.password=wwbl spey evth rihr spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.starttls.enable=true #logging.level.root=DEBUG spring.jmx.enabled=true -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect +#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect message.contractus.subject=Receive a suggestion for contact form. \ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index dfddfb5..ed3f556 100755 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -42,7 +42,7 @@
  • Kids Learning Kit
  • Doc Library
  • Notes
  • -
  • Notes
  • +
  • Whiteboard
  • Plans
  • diff --git a/src/main/resources/templates/layout.html b/src/main/resources/templates/layout.html index 19211f3..8b5ac1f 100755 --- a/src/main/resources/templates/layout.html +++ b/src/main/resources/templates/layout.html @@ -31,6 +31,7 @@