FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PouyaPouryaie/basicFeaturesForSpringProject at feature-c3p0 · GitHub

 
 

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BasicFeaturesForSpringProject

this project, implement instance of basic feature,
you maybe want use for App base on Spring-boot

basicFeature

  • spring-web
  • spring-jpa
    • with custom configuration for PersistenceContext
  • Ehcache
    • customize cache config and implement log for cache
  • Log4j2
    • logging and config log-message
  • Exception management
  • MapStruct
    • mapper tools for map view to entity and vice-versa
  • Validation handler
    • use annotation for validation
    • use log for validation error
    • define your validation and use for model
  • decoupling layer
    • controller, service and repository layer for easy extend

Run guide

Run for develop and debug:

1 - check active profile on dev
2 - run postgre sql on 5432 and create database myapp
3 - run app

Run as docker image:

1 - check active profile on docker and package project
2 - run docker build command for create app image : docker build -t springapp:latest .
3 - run docker compose run command for running app

Features

exception feature

1 - use AppException for define your own error Exception
2 - user HttpExceptionModel for define your own error message and show to client
3 - use HttpErrorCode for unifying error code in project

validation feature

1 - create your own validation type
2 - define your own validation process for entity
3 - use "@validator" annotation on field of entity for validate
4 - log for validation and save error-message in log file

About

This Repo contain basic features for develop application base on spring boot. some of this features is RestApi, cache, hibernate, mapper, test, docker and .....

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL