Skip to content

devellany/spring-boot-sample

Repository files navigation

Build Maintainability codecov HitCount

Spring boot sample

This repository is "Spring boot" sample code.
For the purpose of learning "Spring Boot", I studied the login functions required for all sites.

Uses

Back-end

  • Java 11
  • Spring Boot 2.2.6
  • Spring Security
  • Hibernate
  • Querydsl
  • H2 database
  • Thymeleaf
  • Modelmapper
  • JUnit
  • PowerMockito
  • Lombok

Front-end

  • npm
  • jQuery
  • Font Awesome
  • Bootstrap
  • Bootswatch
  • Bootsnipp

Feature

  • Sign up
  • Sign in
  • Sign out
  • Email verification
  • Resend email
  • Change email

Add "node_modules"

cd src/main/resources
npm install

next commit: npm auto-install

What is directory "local_H2"?

H2 is an in-memory database, so it does not support the remote connection as a default option.
The "local_H2" directory contains files that support remote connections.
See the team blog "dico.me" for more details.

Link: Remote connection for H2 Database

How to connect "local_H2"?

Notice: Run to Appication for EmbeddedH2Config.

HOST: localhost
PORT: 9092
USER: sa
PASSWORD: <EMPTY>
DATABASE: ./local_H2/testdb

URL: jdbc:h2:tcp://localhost:9092/./local_H2/testdb

H2 config

Required setting "application.yml"

server:
  mail:
    host: #SMTP_HOST
    port: #SMTP_PORT
    username: #ID
    password: #PASSWORD
    properties:
      mail:
        smtp:
          auth: false
          timeout: 50000
          starttls:
            enable: true
app:
  host: http://localhost:8082
  title: Devellany's sample
  version: ver.prototype
  help-email: #MAIL_SENDER_ADDRESS
  token-available-period: 60

Reference material

  • Web application development with Spring and JPA, Keesun Baik Link
  • Spring data JPA, Keesun Baik Link
  • Spring boot concept and use, Keesun Baik Link
  • Java ORM standard JPA programming, Younghan Kim Link
  • Reference documents
  • StackOverflow

License

MIT License.

About

This repository is "Spring boot" sample code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published