├── .gitignore ├── active-profile ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── active-profile.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── examples │ │ │ ├── AppConsole.java │ │ │ └── ProfileManager.java │ └── resources │ │ ├── application-dev.properties │ │ └── application.properties │ └── test │ └── java │ └── examples │ └── ApplicationTest.java ├── aop-rest ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── modules.xml │ └── vcs.xml ├── aop-rest.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── examples │ │ │ ├── Application.java │ │ │ ├── ExceptionUtil.java │ │ │ ├── aspect │ │ │ ├── AccessByRouteAspect.java │ │ │ ├── ExceptionAspect.java │ │ │ └── RequestMeasurementAspect.java │ │ │ ├── controller │ │ │ ├── HomeController.java │ │ │ └── RestControllerEmployee.java │ │ │ ├── exceptions │ │ │ └── AccessDeniedException.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── service │ │ │ ├── EmployeeService.java │ │ │ └── impl │ │ │ └── EmployeeServiceImpl.java │ └── resources │ │ └── templates │ │ └── home.html │ └── test │ └── java │ └── examples │ └── controller │ └── RestControllerEmployeeTest.java ├── aop ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── modules.xml │ └── vcs.xml ├── aop.iml ├── pom.xml ├── readme.md └── src │ ├── main │ └── java │ │ └── example │ │ ├── Application.java │ │ ├── aop │ │ ├── common │ │ │ ├── LoggingDeveloperAspect.java │ │ │ └── forlogging │ │ │ │ └── Developer.java │ │ └── typepointcut │ │ │ ├── annotation │ │ │ ├── AccessDenyByAnnotationAspect.java │ │ │ ├── Data.java │ │ │ ├── RangeValidateAnnotationAspect.java │ │ │ ├── Runner.java │ │ │ └── TimeMeasurementAroundAspect.java │ │ │ ├── clazz │ │ │ ├── AccessDenyByClassAspect.java │ │ │ ├── Flower.java │ │ │ └── FlowerDontTouch.java │ │ │ ├── method │ │ │ ├── AccessDenyByMethodAspect.java │ │ │ └── User.java │ │ │ └── packagge │ │ │ ├── AccessDenyByPackageAspect.java │ │ │ └── notallowaccess │ │ │ └── SecureClass.java │ │ ├── customannotation │ │ ├── AccessDeny.java │ │ ├── RangeValidate.java │ │ └── SpendTime.java │ │ └── exceptions │ │ ├── InvalidRangeValueRuntimeException.java │ │ ├── NotAllowAccessCheckedException.java │ │ └── NotAllowAccessRuntimeException.java │ └── test │ └── java │ └── example │ └── aop │ ├── common │ └── forlogging │ │ └── DeveloperTest.java │ └── typepointcut │ ├── annotation │ ├── DataTest.java │ └── RunnerTest.java │ ├── clazz │ ├── FlowerDontTouchTest.java │ └── FlowerTest.java │ ├── method │ └── UserTest.java │ └── packagge │ └── notallowaccess │ └── SecureClassTest.java ├── application-listener ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── application-listener.iml ├── pom.xml ├── readme.md └── src │ └── main │ ├── java │ └── examples │ │ ├── ApplicationConsole.java │ │ ├── event │ │ ├── application │ │ │ ├── ApplicationReady.java │ │ │ ├── ApplicationStarted.java │ │ │ └── ApplicationStarting.java │ │ └── context │ │ │ ├── ContextClosed.java │ │ │ ├── ContextRefreshed.java │ │ │ ├── ContextStarted.java │ │ │ └── annotation │ │ │ └── ContextRefreshedWithAnnotation.java │ │ └── util │ │ └── DateUtil.java │ └── resources │ └── application.properties ├── async ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── async.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── examples │ │ │ ├── Application.java │ │ │ ├── asyncexceptionhandler │ │ │ └── AsyncExceptionHandler.java │ │ │ ├── configasync │ │ │ ├── GlobalAsyncConfig.java │ │ │ └── LocalAsyncConfig.java │ │ │ ├── model │ │ │ └── User.java │ │ │ └── multithreads │ │ │ └── service │ │ │ ├── GitHubLookupCompletableFutureService.java │ │ │ ├── SimpleVoidService.java │ │ │ └── UserCreatorFutureService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── examples │ ├── ClassTestConfig.java │ ├── GlobalSyncConfig.java │ ├── TestApplication.java │ ├── multithreads │ └── service │ │ ├── GitHubLookupCompletableFutureServiceTest.java │ │ └── SimpleVoidServiceTest.java │ └── onethread │ └── service │ ├── GitHubLookupCompletableFutureServiceTest.java │ └── SimpleVoidServiceTest.java ├── autowiring-generic ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── autowiring-generic.iml ├── pom.xml ├── readme.md └── src │ ├── main │ └── java │ │ └── hello │ │ ├── Application.java │ │ ├── dao │ │ ├── BarDao.java │ │ ├── FooDao.java │ │ └── GeneralDao.java │ │ ├── model │ │ ├── Bar.java │ │ ├── Employee.java │ │ └── Foo.java │ │ ├── repository │ │ └── EmployeeRepository.java │ │ └── service │ │ ├── BarService.java │ │ ├── EmployeeService.java │ │ ├── EmployeeServiceOnlyCommonRealization.java │ │ ├── FooService.java │ │ └── GeneralService.java │ └── test │ └── java │ └── hello │ └── service │ ├── BarServiceTest.java │ ├── EmployeeServiceBootTest.java │ ├── EmployeeServiceOnlyCommonRealizationTest.java │ └── EmployeeServiceTest.java ├── cache-rest-jpa ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── cache-rest-jpa.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── Config.java │ │ │ ├── aspect │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ ├── AbstractMapperController.java │ │ │ ├── UserCacheableController.java │ │ │ └── UserController.java │ │ │ ├── entity │ │ │ ├── AbstractEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── Role.java │ │ │ ├── Rule.java │ │ │ └── User.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── ErrorCode.java │ │ │ └── NotFoundException.java │ │ │ ├── repository │ │ │ └── UserRepository.java │ │ │ ├── service │ │ │ ├── AbstractService.java │ │ │ ├── BaseService.java │ │ │ ├── UserCacheableService.java │ │ │ ├── UserService.java │ │ │ └── impl │ │ │ │ ├── UserCacheableServiceImpl.java │ │ │ │ └── UserServiceImpl.java │ │ │ ├── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ │ │ └── util │ │ │ └── ObjectMapperUtils.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ └── controller │ │ ├── UserCacheableControllerTest.java │ │ └── UserControllerWithoutCacheTest.java │ └── resources │ ├── application-test.properties.dist │ └── dbunit │ └── user.xml ├── dao-jpa-criteria-old ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── dao-jpa-criteria-old.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── container │ │ │ ├── FieldHolder.java │ │ │ ├── OrderType.java │ │ │ └── QueryParams.java │ │ │ ├── dao │ │ │ ├── BaseDao.java │ │ │ ├── impl │ │ │ │ └── AbstractBaseDao.java │ │ │ ├── oneToMany │ │ │ │ ├── CommentDao.java │ │ │ │ ├── PostDao.java │ │ │ │ └── impl │ │ │ │ │ ├── CommentDaoImpl.java │ │ │ │ │ └── PostDaoImpl.java │ │ │ └── single │ │ │ │ ├── EmployeeDao.java │ │ │ │ └── impl │ │ │ │ └── EmployeeDaoImpl.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── oneToMany │ │ │ │ ├── Author.java │ │ │ │ ├── Comment.java │ │ │ │ └── Post.java │ │ │ └── single │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── service │ │ │ ├── CriteriaAliasService.java │ │ │ ├── FieldHolderService.java │ │ │ └── impl │ │ │ │ ├── CriteriaAliasServiceImpl.java │ │ │ │ └── FieldHolderServiceImpl.java │ │ │ └── util │ │ │ ├── CollectionUtils.java │ │ │ ├── DateUtils.java │ │ │ ├── EntityFieldUtils.java │ │ │ ├── HibernateUtils.java │ │ │ ├── ReflectionUtils.java │ │ │ ├── SQLInjectionEscaper.java │ │ │ ├── StringDelimiterUtils.java │ │ │ └── StringUtil.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── ApplicationTest.java │ │ ├── BaseTest.java │ │ ├── dao │ │ ├── oneToMany │ │ │ └── impl │ │ │ │ └── CommentDaoImplTest.java │ │ └── single │ │ │ └── impl │ │ │ └── EmployeeDaoImplTest.java │ │ ├── service │ │ └── impl │ │ │ └── CriteriaAliasServiceImplTest.java │ │ └── util │ │ └── StringUtilTest.java │ └── resources │ ├── application-test.properties │ ├── application-test.properties.dist │ ├── employee.xml │ └── post_comment_author.xml ├── dao-jpa-criteria ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── dao-jpa-criteria.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── container │ │ │ ├── FieldHolder.java │ │ │ ├── OrderType.java │ │ │ └── QueryParams.java │ │ │ ├── dao │ │ │ ├── BaseDao.java │ │ │ ├── impl │ │ │ │ └── AbstractBaseDao.java │ │ │ ├── oneToMany │ │ │ │ ├── CommentDao.java │ │ │ │ ├── PostDao.java │ │ │ │ └── impl │ │ │ │ │ ├── CommentDaoImpl.java │ │ │ │ │ └── PostDaoImpl.java │ │ │ └── single │ │ │ │ ├── EmployeeDao.java │ │ │ │ └── impl │ │ │ │ └── EmployeeDaoImpl.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── oneToMany │ │ │ │ ├── Author.java │ │ │ │ ├── Comment.java │ │ │ │ └── Post.java │ │ │ └── single │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── service │ │ │ ├── FieldHolderService.java │ │ │ └── impl │ │ │ │ └── FieldHolderServiceImpl.java │ │ │ └── util │ │ │ ├── CollectionUtils.java │ │ │ ├── DateUtils.java │ │ │ ├── EntityFieldUtils.java │ │ │ ├── HibernateUtils.java │ │ │ ├── ReflectionUtils.java │ │ │ ├── SQLInjectionEscaper.java │ │ │ └── StringUtil.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── ApplicationTest.java │ │ ├── BaseTest.java │ │ ├── dao │ │ ├── oneToMany │ │ │ └── impl │ │ │ │ └── CommentDaoImplTest.java │ │ └── single │ │ │ └── impl │ │ │ └── EmployeeDaoImplTest.java │ │ └── util │ │ └── StringUtilTest.java │ └── resources │ ├── application-test.properties │ ├── application-test.properties.dist │ ├── employee.xml │ └── post_comment_author.xml ├── exception-handler-controller ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── exception-handler-controller.iml ├── pom.xml ├── readme.md └── src │ └── main │ ├── java │ └── examples │ │ ├── Application.java │ │ ├── controller │ │ ├── ExceptionHandlingController.java │ │ └── HomeController.java │ │ ├── exception │ │ ├── CheckedException.java │ │ ├── InfoRuntimeException.java │ │ ├── OtherOtherRuntimeException.java │ │ ├── OtherRuntimeException.java │ │ └── SomeRuntimeException.java │ │ └── util │ │ └── ExceptionUtil.java │ └── resources │ ├── application.properties │ └── templates │ ├── custom-exception-page.html │ └── home.html ├── exception-handler-global ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── exception-handler-global.iml ├── pom.xml └── src │ └── main │ ├── java │ └── examples │ │ ├── Application.java │ │ ├── controller │ │ ├── ExceptionHandlingController.java │ │ ├── GlobalControllerExceptionHandler.java │ │ └── HomeController.java │ │ ├── exception │ │ ├── CheckedException.java │ │ ├── InfoRuntimeException.java │ │ ├── OtherOtherRuntimeException.java │ │ ├── OtherRuntimeException.java │ │ └── SomeRuntimeException.java │ │ └── util │ │ └── ExceptionUtil.java │ └── resources │ ├── application.properties │ └── templates │ ├── custom-exception-page.html │ └── home.html ├── file-upload-simple ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── file-upload-simple.iml ├── pom.xml └── src │ └── main │ ├── java │ └── hello │ │ ├── Application.java │ │ ├── FileUploadController.java │ │ └── storage │ │ ├── FileStorage.java │ │ ├── FileStorageImpl.java │ │ └── StorageException.java │ └── resources │ ├── application.properties │ └── templates │ └── uploadForm.html ├── file-upload ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── file-upload.iml ├── pom.xml └── src │ └── main │ ├── java │ └── hello │ │ ├── Application.java │ │ ├── FileUploadController.java │ │ └── storage │ │ ├── FileSystemStorageService.java │ │ ├── StorageException.java │ │ ├── StorageFileNotFoundException.java │ │ ├── StorageProperties.java │ │ └── StorageService.java │ └── resources │ ├── application.properties │ └── templates │ └── uploadForm.html ├── form-with-validate ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── form-with-validate.iml ├── pom.xml ├── readme.md └── src │ └── main │ ├── java │ └── examples │ │ ├── Application.java │ │ ├── controller │ │ ├── AnnotationValidateDataController.java │ │ └── ValidatorDataController.java │ │ ├── model │ │ ├── Data.java │ │ └── annotations │ │ │ └── DataWithAnnotationValidate.java │ │ └── validate │ │ └── DataValidator.java │ └── resources │ ├── messages.properties │ └── templates │ ├── form.html │ ├── form.validator.html │ ├── result.html │ └── result.validator.html ├── get-bean ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── HELP.md ├── get-bean.iml ├── mvnw ├── mvnw.cmd ├── pom.xml ├── readme.md └── src │ ├── main │ └── java │ │ └── com │ │ └── example │ │ └── getbean │ │ ├── GetBeanApplication.java │ │ └── service │ │ ├── ServiceA.java │ │ ├── a │ │ └── SomeService.java │ │ └── b │ │ └── SomeService.java │ └── test │ └── java │ └── com │ └── example │ └── getbean │ ├── ApplicationContextTest.java │ └── GetBeanApplicationTests.java ├── hibernate-cache-2-level ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-cache-2-level.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── cache │ │ │ │ └── GoodReadOnly.java │ │ │ ├── repository │ │ │ └── cache │ │ │ │ └── GoodRepository.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ ├── application.properties.dist │ │ └── ehcache.xml │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ └── cache │ │ └── GoodReadOnlyTest.java │ └── resources │ ├── application-test.properties.dist │ └── good-read-only.xml ├── hibernate-cascade ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-cascade.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── allCascade │ │ │ │ └── manyToMany │ │ │ │ │ ├── Country.java │ │ │ │ │ └── People.java │ │ │ ├── persistCascade │ │ │ │ ├── Catalog.java │ │ │ │ └── Good.java │ │ │ ├── removeCascade │ │ │ │ ├── Account.java │ │ │ │ └── Client.java │ │ │ └── withoutCascade │ │ │ │ ├── Comment.java │ │ │ │ ├── Post.java │ │ │ │ └── manyToMany │ │ │ │ ├── mappedBy │ │ │ │ ├── Role.java │ │ │ │ └── User.java │ │ │ │ └── twoMain │ │ │ │ ├── Author.java │ │ │ │ └── Book.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ ├── allCascade │ │ └── manyToMany │ │ │ ├── CountryTest.java │ │ │ └── PeopleTest.java │ │ ├── persistCascade │ │ └── CatalogTest.java │ │ ├── removeCascade │ │ └── ClientTest.java │ │ └── withoutCascade │ │ ├── CommentTest.java │ │ ├── PostTest.java │ │ └── manyToMany │ │ ├── mappedBy │ │ ├── RoleTest.java │ │ └── UserTest.java │ │ └── twoMain │ │ ├── AuthorTest.java │ │ └── BookTest.java │ └── resources │ ├── application-test.properties.dist │ ├── author_book.xml │ ├── people_country.xml │ ├── persistCascade │ └── catalog_good.xml │ ├── removeCascade │ └── client_account.xml │ ├── user_role.xml │ └── withoutCascade │ └── post_comment.xml ├── hibernate-composite-key ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-composite-key.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── composite │ │ │ │ ├── relationFields │ │ │ │ ├── Author.java │ │ │ │ ├── Book.java │ │ │ │ └── BookId.java │ │ │ │ └── simpleFields │ │ │ │ ├── RightDictionaryItem.java │ │ │ │ └── RightDictionaryItemId.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ └── composite │ │ ├── relationFields │ │ └── BookTest.java │ │ └── simpleFields │ │ └── RightDictionaryItemTest.java │ └── resources │ ├── application-test.properties.dist │ ├── book_author.xml │ └── right_dictionary_item.xml ├── hibernate-equals-hashcode ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-equals-hashcode.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── BaseEntity.java │ │ │ ├── defaultHashCode │ │ │ │ └── Good.java │ │ │ ├── naturalId │ │ │ │ └── Book.java │ │ │ ├── overrideAllFields │ │ │ │ └── User.java │ │ │ └── overrideAllFields_hashCodeConstant │ │ │ │ └── Client.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractHibernateCheckEqualsHashCodeTest.java │ │ ├── AbstractHibernateTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ ├── defaultHashCode │ │ └── GoodTest.java │ │ ├── naturalId │ │ └── BookTest.java │ │ ├── overrideAllFields │ │ └── UserTest.java │ │ └── overrideAllFields_hashCodeConstant │ │ └── ClientTest.java │ └── resources │ ├── application.properties.dist │ ├── book.xml │ ├── client.xml │ ├── good.xml │ └── user.xml ├── hibernate-many-to-many ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-many-to-many.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── bidirectional │ │ │ │ ├── mappedBy │ │ │ │ │ ├── Role.java │ │ │ │ │ └── User.java │ │ │ │ ├── twoMain │ │ │ │ │ ├── Author.java │ │ │ │ │ └── Book.java │ │ │ │ ├── typeOfCollection │ │ │ │ │ ├── Collection │ │ │ │ │ │ ├── Glass.java │ │ │ │ │ │ └── GlassHolder.java │ │ │ │ │ ├── List │ │ │ │ │ │ ├── Comment.java │ │ │ │ │ │ └── Post.java │ │ │ │ │ └── Set │ │ │ │ │ │ ├── Human.java │ │ │ │ │ │ └── Planet.java │ │ │ │ └── withCascade │ │ │ │ │ ├── Country.java │ │ │ │ │ └── People.java │ │ │ └── composite │ │ │ │ ├── RightDictionaryItem.java │ │ │ │ └── RightDictionaryItemId.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ └── bidirectional │ │ ├── mappedBy │ │ ├── RoleTest.java │ │ └── UserTest.java │ │ ├── twoMain │ │ ├── AuthorTest.java │ │ └── BookTest.java │ │ ├── typeOfCollection │ │ ├── Collection │ │ │ └── GlassTest.java │ │ ├── List │ │ │ └── PostTest.java │ │ └── Set │ │ │ └── PlanetTest.java │ │ └── withCascade │ │ ├── CountryTest.java │ │ └── PeopleTest.java │ └── resources │ ├── application-test.properties.dist │ ├── author_book.xml │ ├── glass_holder.xml │ ├── people_country.xml │ ├── planet_human.xml │ ├── post_comment.xml │ └── user_role.xml ├── hibernate-one-to-one ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-one-to-one.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── bidirectional │ │ │ │ ├── mappedBy │ │ │ │ ├── Role.java │ │ │ │ └── User.java │ │ │ │ └── twoMain │ │ │ │ └── joinColumn │ │ │ │ ├── Author.java │ │ │ │ └── Book.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ └── bidirectional │ │ ├── mappedBy │ │ ├── RoleTest.java │ │ └── UserTest.java │ │ └── twoMain │ │ └── joinColumn │ │ ├── AuthorTest.java │ │ └── BookTest.java │ └── resources │ ├── application-test.properties.dist │ └── user_role.xml ├── hibernate-orphan-removal ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-orphan-removal.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── orphanRemoval │ │ │ │ ├── Person.java │ │ │ │ └── Phone.java │ │ │ └── withoutOrphanRemoval │ │ │ │ ├── Author.java │ │ │ │ └── Book.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ ├── orphanRemoval │ │ └── PersonTest.java │ │ └── withoutOrphanRemoval │ │ └── AuthorTest.java │ └── resources │ └── application-test.properties.dist ├── hibernate-pre-post-annotation ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-pre-post-annotation.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── pre │ │ │ │ └── Employee.java │ │ │ ├── repository │ │ │ └── pre │ │ │ │ └── EmployeeRepository.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ └── pre │ │ └── EmployeeTest.java │ └── resources │ ├── application-test.properties.dist │ └── employee.xml ├── hibernate-problems ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-problems.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── nPlusOneProblem │ │ │ │ ├── Comment.java │ │ │ │ ├── Post.java │ │ │ │ └── solution │ │ │ │ ├── batchSize │ │ │ │ ├── Account.java │ │ │ │ └── Client.java │ │ │ │ └── joinFetch │ │ │ │ ├── Author.java │ │ │ │ └── Book.java │ │ │ ├── repository │ │ │ └── nPlusOneProblem │ │ │ │ ├── CommentRepository.java │ │ │ │ ├── PostRepository.java │ │ │ │ └── solution │ │ │ │ ├── batchSize │ │ │ │ ├── AccountRepository.java │ │ │ │ └── ClientRepository.java │ │ │ │ └── joinFetch │ │ │ │ ├── AuthorRepository.java │ │ │ │ └── BookRepository.java │ │ │ └── sqltracker │ │ │ ├── AssertSqlCount.java │ │ │ ├── QueryCountInfo.java │ │ │ ├── QueryCountInfoHandler.java │ │ │ ├── QueryCountInfoHolder.java │ │ │ ├── QueryHandler.java │ │ │ ├── QueryType.java │ │ │ ├── SqlCountMismatchException.java │ │ │ └── StatementInspectorImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ └── entity │ │ └── nPlusOneProblem │ │ ├── NPlusOneProblemPostTest.java │ │ └── solution │ │ ├── batchSize │ │ └── ClientTest.java │ │ └── joinFetch │ │ └── AuthorTest.java │ └── resources │ ├── account.xml │ ├── application-test.properties.dist │ ├── book_author.xml │ ├── client.xml │ ├── comment.xml │ └── post.xml ├── hibernate-spring-boot-15 ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-spring-boot-15.iml ├── pom.xml ├── readme.md ├── sql.sql └── src │ └── main │ ├── java │ └── example │ │ ├── Application.java │ │ ├── BeanConfig.java │ │ ├── controller │ │ └── UserController.java │ │ ├── dao │ │ ├── UserDao.java │ │ └── impl │ │ │ └── UserDaoImpl.java │ │ ├── model │ │ └── UserDetails.java │ │ └── service │ │ ├── UserService.java │ │ └── impl │ │ └── UserServiceImpl.java │ └── resources │ └── application.properties.dist ├── hibernate-spring-boot ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-spring-boot.iml ├── pom.xml ├── readme.md ├── sql.sql └── src │ └── main │ ├── java │ └── example │ │ ├── Application.java │ │ ├── controller │ │ └── UserController.java │ │ ├── dao │ │ ├── UserDao.java │ │ └── impl │ │ │ └── UserDaoImpl.java │ │ ├── model │ │ └── UserDetails.java │ │ └── service │ │ ├── UserService.java │ │ └── impl │ │ └── UserServiceImpl.java │ └── resources │ └── application.properties.dist ├── hibernate-structure ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── modules.xml │ └── vcs.xml ├── hibernate-structure.iml ├── pom.xml └── src │ ├── main │ ├── java │ │ └── example │ │ │ ├── Application.java │ │ │ ├── aspect │ │ │ └── ExceptionControllerAspect.java │ │ │ ├── config │ │ │ └── Beans.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── dao │ │ │ ├── AbstractBaseEntityDao.java │ │ │ ├── AbstractDao.java │ │ │ ├── Dao.java │ │ │ ├── UserDao.java │ │ │ └── impl │ │ │ │ └── UserDaoImpl.java │ │ │ ├── entity │ │ │ ├── BaseEntity.java │ │ │ ├── User.java │ │ │ └── impl │ │ │ │ └── BaseEntityImpl.java │ │ │ ├── exceptions │ │ │ ├── BaseException.java │ │ │ ├── DuplicateFieldException.java │ │ │ ├── ERROR_CODES.java │ │ │ └── PropertyNotFoundException.java │ │ │ ├── service │ │ │ ├── UserService.java │ │ │ └── impl │ │ │ │ └── UserServiceImpl.java │ │ │ └── utils │ │ │ └── JsonUtil.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── example │ │ └── dao │ │ └── impl │ │ └── UserDaoImplTest.java │ └── resources │ └── application.properties.dist ├── interceptor ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── interceptor.iml ├── pom.xml ├── readme.md └── src │ └── main │ ├── java │ └── examples │ │ ├── AppConfig.java │ │ ├── Application.java │ │ ├── controller │ │ ├── HomeController.java │ │ └── LocalController.java │ │ └── interceptor │ │ └── LoggerInterceptor.java │ └── resources │ ├── application.properties │ ├── messages.properties │ ├── messages_fr.properties │ └── templates │ └── home.html ├── internationalization ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── internationalization.iml ├── pom.xml ├── readme.md └── src │ └── main │ ├── java │ └── examples │ │ ├── AppConfig.java │ │ ├── Application.java │ │ └── controller │ │ ├── HomeController.java │ │ └── LocalController.java │ └── resources │ ├── application.properties │ ├── messages.properties │ ├── messages_fr.properties │ └── templates │ └── home.html ├── jackson-annotation ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── inspectionProfiles │ │ ├── Project_Default.xml │ │ └── profiles_settings.xml │ ├── modules.xml │ └── vcs.xml ├── jackson-annotation.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ ├── hello │ │ │ ├── Application.java │ │ │ ├── JsonAlias │ │ │ │ └── User.java │ │ │ ├── JsonAnyGetter │ │ │ │ ├── User.java │ │ │ │ └── UserWithoutJsonAndGetter.java │ │ │ ├── JsonAnySetter │ │ │ │ └── User.java │ │ │ ├── JsonCreator │ │ │ │ └── User.java │ │ │ ├── JsonFormat │ │ │ │ └── User.java │ │ │ ├── JsonGetter │ │ │ │ └── User.java │ │ │ ├── JsonIgnore │ │ │ │ └── User.java │ │ │ ├── JsonIgnoreProperties │ │ │ │ ├── User.java │ │ │ │ ├── UserIgnoreFirstName.java │ │ │ │ └── UserIgnoreUnknown.java │ │ │ ├── JsonInclude │ │ │ │ ├── User.java │ │ │ │ └── UserJsonIncludeNonEmpty.java │ │ │ ├── JsonProperty │ │ │ │ └── User.java │ │ │ ├── JsonPropertyOrder │ │ │ │ └── User.java │ │ │ ├── JsonRawValue │ │ │ │ └── User.java │ │ │ ├── JsonRootName │ │ │ │ └── User.java │ │ │ ├── JsonView │ │ │ │ ├── User.java │ │ │ │ └── Views.java │ │ │ └── model │ │ │ │ ├── Gender.java │ │ │ │ ├── User.java │ │ │ │ └── UserProfile.java │ │ ├── jsonArray │ │ │ └── JsonArray.java │ │ └── jsonList │ │ │ └── JsonList.java │ └── resources │ │ └── application.properties.dist │ └── test │ └── java │ ├── createJson │ ├── CreateJsonByJacksonTest.java │ └── CreateJsonByStringTest.java │ ├── hello │ ├── JsonAlias │ │ └── UserTest.java │ ├── JsonAnyGetter │ │ └── UserTest.java │ ├── JsonAnySetter │ │ └── UserTest.java │ ├── JsonCreator │ │ └── UserTest.java │ ├── JsonFormat │ │ └── UserTest.java │ ├── JsonGetter │ │ └── UserTest.java │ ├── JsonIgnore │ │ └── UserTest.java │ ├── JsonIgnoreProperties │ │ └── UserIgnoreUnknownTest.java │ ├── JsonInclude │ │ └── UserTest.java │ ├── JsonProperty │ │ └── UserTest.java │ ├── JsonPropertyOrder │ │ └── UserTest.java │ ├── JsonRawValue │ │ └── UserTest.java │ ├── JsonRootName │ │ └── UserTest.java │ └── JsonView │ │ └── UserTest.java │ ├── jsonArray │ └── JsonArrayTest.java │ └── jsonList │ └── JsonListTest.java ├── jdbc-template ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── jdbc-template.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── dao │ │ │ ├── EmployeeDao.java │ │ │ └── impl │ │ │ │ └── EmployeeDaoImpl.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── service │ │ │ ├── EmployeeService.java │ │ │ └── impl │ │ │ └── EmployeeServiceImpl.java │ └── resources │ │ ├── application.properties.dist │ │ ├── db.sql │ │ └── templates │ │ └── uploadForm.html │ └── test │ ├── java │ └── hello │ │ └── dao │ │ └── impl │ │ ├── with_config_scan │ │ ├── EmployeeDaoImplTest.java │ │ └── EmployeeDaoImplTestConfig.java │ │ └── with_spring_boot_test │ │ └── EmployeeDaoImplTest.java │ └── resources │ └── application.properties.dist ├── jpa-element-collection ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── jpa-element-collection.iml ├── pom.xml ├── readme.md └── src │ └── main │ ├── java │ └── hello │ │ ├── Application.java │ │ ├── model │ │ ├── Address.java │ │ └── User.java │ │ └── repository │ │ └── UserRepository.java │ └── resources │ └── application.properties.dist ├── jpa-embeddable ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── jpa-embeddable.iml ├── pom.xml └── src │ └── main │ ├── java │ └── hello │ │ ├── Application.java │ │ ├── model │ │ ├── Address.java │ │ ├── Name.java │ │ └── User.java │ │ └── repository │ │ └── UserRepository.java │ └── resources │ └── application.properties.dist ├── jpa-flyway ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ ├── sqldialects.xml │ └── vcs.xml ├── jpa-flyway.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── example │ │ │ ├── Application.java │ │ │ └── model │ │ │ └── User.java │ └── resources │ │ ├── application.properties.dist │ │ └── db │ │ └── migration │ │ ├── V1__init.sql │ │ └── V2__testdata.sql │ └── test │ └── java │ └── com │ └── example │ └── demo │ └── DemoApplicationTests.java ├── jpa-liquibase-profile-test ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── jpa-liquibase-profile-test.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── business │ │ │ ├── AuthorsManager.java │ │ │ └── BooksManager.java │ │ │ └── persistence │ │ │ ├── entities │ │ │ ├── Author.java │ │ │ └── Book.java │ │ │ └── repositories │ │ │ ├── AuthorRepository.java │ │ │ └── BookRepository.java │ └── resources │ │ ├── application.properties.dist │ │ ├── db │ │ ├── changelog │ │ │ ├── 01-create-books-and-author-schema.xml │ │ │ └── test │ │ │ │ ├── 01-insert-data-authors.xml │ │ │ │ └── 02-insert-data-books.xml │ │ └── liquibase-changelog.xml │ │ └── liquibase.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractIntegrationTest.java │ │ ├── ApplicationTest.java │ │ └── business │ │ ├── AuthorsManagerTest.java │ │ └── BooksManagerTest.java │ └── resources │ └── application.properties.dist ├── jpa-liquibase ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── spring-boot-liquibase.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── business │ │ │ ├── AuthorsManager.java │ │ │ └── BooksManager.java │ │ │ └── persistence │ │ │ ├── entities │ │ │ ├── Author.java │ │ │ └── Book.java │ │ │ └── repositories │ │ │ ├── AuthorRepository.java │ │ │ └── BookRepository.java │ └── resources │ │ ├── application.properties.dist │ │ ├── db │ │ ├── changelog │ │ │ ├── 01-create-books-and-author-schema.xml │ │ │ ├── 02-insert-data-authors.xml │ │ │ ├── 02-insert-data-books.xml │ │ │ ├── 03-create-release-tag-1.xml │ │ │ └── 04-create-new-table.xml │ │ └── liquibase-changelog.xml │ │ └── liquibase.properties.dist │ └── test │ ├── java │ ├── custom_config │ │ └── ConfigWithoutLiquibase.java │ └── hello │ │ ├── AbstractIntegrationDBUnitTest.java │ │ ├── ApplicationTest.java │ │ ├── ApplicationTestWithoutLiquibaseByConfigClassTest.java │ │ ├── ApplicationWithoutLiquibaseTest.java │ │ └── business │ │ ├── AuthorsManagerTest.java │ │ └── BooksManagerTest.java │ └── resources │ ├── application.properties.dist │ ├── application_without_liquibase.properties.dist │ └── dbunit │ └── books_authors.xml ├── jpa-one-to-many-bidirectional ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── jpa-one-to-many-bidirectional.iml ├── pom.xml └── src │ └── main │ ├── java │ └── hello │ │ ├── Application.java │ │ ├── ApplicationConsole.java │ │ ├── controller │ │ ├── CommentController.java │ │ └── PostController.java │ │ ├── exception │ │ └── ResourceNotFoundException.java │ │ ├── model │ │ ├── AuditModel.java │ │ ├── Comment.java │ │ └── Post.java │ │ └── repository │ │ ├── CommentRepository.java │ │ └── PostRepository.java │ └── resources │ └── application.properties.dist ├── jpa-one-to-many-unidirectional ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── jpa-one-to-many-unidirectional.iml ├── pom.xml └── src │ └── main │ ├── java │ └── hello │ │ ├── Application.java │ │ ├── ApplicationConsole.java │ │ ├── controller │ │ ├── CommentController.java │ │ └── PostController.java │ │ ├── exception │ │ └── ResourceNotFoundException.java │ │ ├── model │ │ ├── AuditModel.java │ │ ├── Comment.java │ │ └── Post.java │ │ └── repository │ │ ├── CommentRepository.java │ │ └── PostRepository.java │ └── resources │ └── application.properties.dist ├── jpa-one-to-one ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── jpa-one-to-one.iml ├── pom.xml └── src │ └── main │ ├── java │ └── hello │ │ ├── Application.java │ │ ├── model │ │ ├── Gender.java │ │ ├── User.java │ │ └── UserProfile.java │ │ └── repository │ │ ├── UserProfileRepository.java │ │ └── UserRepository.java │ └── resources │ └── application.properties.dist ├── jpa-static-metamodel ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── jpa-static-metamodel.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── container │ │ │ ├── FieldHolder.java │ │ │ ├── OrderType.java │ │ │ └── QueryParams.java │ │ │ ├── dao │ │ │ ├── BaseDao.java │ │ │ ├── impl │ │ │ │ └── AbstractBaseDao.java │ │ │ ├── oneToMany │ │ │ │ ├── CommentDao.java │ │ │ │ ├── PostDao.java │ │ │ │ └── impl │ │ │ │ │ ├── CommentDaoImpl.java │ │ │ │ │ └── PostDaoImpl.java │ │ │ └── single │ │ │ │ ├── EmployeeDao.java │ │ │ │ └── impl │ │ │ │ └── EmployeeDaoImpl.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── oneToMany │ │ │ │ ├── Author.java │ │ │ │ ├── Comment.java │ │ │ │ └── Post.java │ │ │ └── single │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── service │ │ │ ├── FieldHolderService.java │ │ │ └── impl │ │ │ │ └── FieldHolderServiceImpl.java │ │ │ └── util │ │ │ ├── DateUtils.java │ │ │ ├── EntityFieldUtils.java │ │ │ ├── HibernateUtils.java │ │ │ ├── ReflectionUtils.java │ │ │ └── StringUtil.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── ApplicationTest.java │ │ ├── BaseTest.java │ │ ├── dao │ │ ├── oneToMany │ │ │ └── impl │ │ │ │ └── CommentDaoImplTest.java │ │ └── single │ │ │ └── impl │ │ │ └── EmployeeDaoImplTest.java │ │ └── util │ │ └── StringUtilTest.java │ └── resources │ ├── application-test.properties │ ├── application-test.properties.dist │ ├── employee.xml │ └── post_comment_author.xml ├── logging-hibernate ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── logging-hibernate.iml ├── pom.xml └── src │ └── main │ ├── java │ └── hello │ │ ├── Application.java │ │ ├── ApplicationConsole.java │ │ ├── controller │ │ ├── CommentController.java │ │ └── PostController.java │ │ ├── exception │ │ └── ResourceNotFoundException.java │ │ ├── model │ │ ├── AuditModel.java │ │ ├── Comment.java │ │ └── Post.java │ │ ├── repository │ │ ├── CommentRepository.java │ │ └── PostRepository.java │ │ └── sqlformatter │ │ └── SimpleFormatter.java │ └── resources │ ├── application.properties.dist.default_tools │ ├── application.properties.dist.spy │ └── spy.properties.dist ├── logging-log4j ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── log │ └── .gitignore ├── logging-log4j.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── repository │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ ├── AbstractService.java │ │ │ ├── EmployeeService.java │ │ │ ├── Service.java │ │ │ └── impl │ │ │ └── EmployeeServiceImpl.java │ └── resources │ │ ├── application.properties.dist │ │ └── log4j.properties │ └── test │ ├── java │ └── hello │ │ ├── ApplicationTest.java │ │ └── controller │ │ └── EmployeeControllerTest.java │ └── resources │ ├── application-test.properties │ ├── employee.xml │ └── log4j.properties ├── logging-log4j2 ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── log │ └── .gitignore ├── logging-log4j2.iml ├── pom.xml ├── readme.md └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── repository │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ ├── AbstractService.java │ │ │ ├── EmployeeService.java │ │ │ ├── Service.java │ │ │ └── impl │ │ │ └── EmployeeServiceImpl.java │ └── resources │ │ ├── application.properties.dist │ │ └── log4j2.properties │ └── test │ ├── java │ └── hello │ │ ├── ApplicationTest.java │ │ └── controller │ │ └── EmployeeControllerTest.java │ └── resources │ ├── application-test.properties │ ├── employee.xml │ └── log4j2.properties ├── logging ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── logging.iml ├── pom.xml ├── readme.md └── src │ └── main │ ├── java │ └── examples │ │ ├── ApplicationConsole.java │ │ └── info │ │ └── Info.java │ └── resources │ └── application.properties ├── maven-multi-modules ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── application │ ├── application.iml │ ├── pom.xml │ └── src │ │ └── main │ │ ├── java │ │ └── application │ │ │ ├── Application.java │ │ │ └── LoadDatabase.java │ │ └── resources │ │ ├── application.properties │ │ └── application.properties.dist ├── controller │ ├── controller.iml │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── controller │ │ ├── EmployeeController.java │ │ ├── advice │ │ └── EmployeeNotFoundAdvice.java │ │ └── exception │ │ └── EmployeeNotFoundException.java ├── maven-multi-modules.iml ├── model │ ├── model.iml │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── model │ │ └── Employee.java ├── pom.xml ├── readme.md └── repository │ ├── pom.xml │ ├── repository.iml │ └── src │ └── main │ └── java │ └── repository │ └── EmployeeRepository.java ├── rest-aop ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-aop.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── apect │ │ │ ├── ExceptionControllerAdvice.java │ │ │ └── SecurityAccessAspect.java │ │ │ ├── controller │ │ │ └── single │ │ │ │ └── EmployeeController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntityWithLong.java │ │ │ ├── BaseEntity.java │ │ │ └── single │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── AccessDeniedException.java │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── repository │ │ │ └── single │ │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ ├── EmployeeService.java │ │ │ ├── Service.java │ │ │ └── impl │ │ │ ├── AbstractService.java │ │ │ └── EmployeeServiceImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── ApplicationTest.java │ │ └── controller │ │ └── single │ │ └── EmployeeControllerTest.java │ └── resources │ ├── application.properties.dist │ ├── comment.xml │ ├── employee.xml │ └── post.xml ├── rest-docs-api ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-docs-api.iml └── src │ ├── main │ ├── asciidoc │ │ ├── api.adoc │ │ ├── employee.adoc │ │ └── post.adoc │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ ├── oneToMany │ │ │ │ ├── CommentController.java │ │ │ │ ├── CommentWithPostIdInRouteController.java │ │ │ │ └── PostController.java │ │ │ └── single │ │ │ │ └── EmployeeController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── oneToMany │ │ │ │ ├── Comment.java │ │ │ │ └── Post.java │ │ │ └── single │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── repository │ │ │ ├── oneToMany │ │ │ │ ├── CommentRepository.java │ │ │ │ └── PostRepository.java │ │ │ └── single │ │ │ │ └── EmployeeRepository.java │ │ │ ├── service │ │ │ ├── CommentService.java │ │ │ ├── CommentWithPostIdService.java │ │ │ ├── EmployeeService.java │ │ │ ├── PostService.java │ │ │ ├── Service.java │ │ │ └── impl │ │ │ │ ├── AbstractService.java │ │ │ │ ├── CommentServiceImpl.java │ │ │ │ ├── CommentWithPostIdServiceImpl.java │ │ │ │ ├── EmployeeServiceImpl.java │ │ │ │ └── PostServiceImpl.java │ │ │ └── util │ │ │ └── JacksonUtil.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractIntegrationForDbUnitTest.java │ │ ├── AbstractIntegrationMvcTest.java │ │ ├── AbstractIntegrationMvcWithDocsSimpleRouteTest.java │ │ ├── AbstractIntegrationMvcWithDocsTest.java │ │ ├── AbstractIntegrationTest.java │ │ ├── ApplicationTest.java │ │ ├── IntegrationMvcWithDocsTest.java │ │ ├── withAbstraction │ │ └── PostControllerTest.java │ │ └── withoutAbstraction │ │ └── EmployeeControllerTest.java │ └── resources │ ├── application-test.properties │ ├── application-test.properties.dist │ ├── comment.xml │ ├── employee.xml │ └── post.xml ├── rest-docs ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-docs.iml └── src │ ├── main │ ├── asciidoc │ │ └── index.adoc │ └── java │ │ └── examples │ │ ├── Application.java │ │ └── controller │ │ └── HomeController.java │ └── test │ ├── java │ └── examples │ │ ├── ApplicationTest.java │ │ └── controller │ │ └── HomeControllerTest.java │ └── resources │ └── application.properties ├── rest-jpa-date-audit-entity ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── Readme.md ├── pom.xml ├── rest-jpa-date-audit-entity.iml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── easynotes │ │ │ ├── EasyNotesApplication.java │ │ │ ├── controller │ │ │ ├── IndexController.java │ │ │ └── NoteController.java │ │ │ ├── exception │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Note.java │ │ │ └── repository │ │ │ └── NoteRepository.java │ └── resources │ │ └── application.properties.dist │ └── test │ └── java │ └── com │ └── example │ └── easynotes │ └── EasyNotesApplicationTests.java ├── rest-jpa-dto-mapper ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-jpa-dto-mapper.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── Config.java │ │ │ ├── annotation │ │ │ └── Dto.java │ │ │ ├── aspect │ │ │ ├── DtoMapperResponseBodyAdvice.java │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ ├── AbstractMapperController.java │ │ │ ├── CompanyController.java │ │ │ ├── ProductController.java │ │ │ ├── ProductTypeController.java │ │ │ ├── abstractDtoController │ │ │ │ └── CompanyMapperFromAbstractController.java │ │ │ ├── annotation │ │ │ │ ├── CompanyMapperAnnotationController.java │ │ │ │ └── ProductTypeMapperAnnotationController.java │ │ │ └── facade │ │ │ │ └── CompanyMapperController.java │ │ │ ├── dto │ │ │ ├── CompanyDto.java │ │ │ ├── ProductTypeCompanyIdDto.java │ │ │ └── ProductTypeDto.java │ │ │ ├── entity │ │ │ ├── AbstractEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── Company.java │ │ │ ├── Product.java │ │ │ └── ProductType.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── ErrorCode.java │ │ │ └── NotFoundException.java │ │ │ ├── facade │ │ │ ├── AbstractFacade.java │ │ │ ├── CompanyFacade.java │ │ │ ├── CompanyFacadeOld.java │ │ │ └── Facade.java │ │ │ ├── repository │ │ │ ├── CompanyRepository.java │ │ │ ├── ProductRepository.java │ │ │ └── ProductTypeRepository.java │ │ │ ├── service │ │ │ ├── AbstractService.java │ │ │ ├── BaseService.java │ │ │ ├── CompanyService.java │ │ │ ├── ProductService.java │ │ │ ├── ProductTypeService.java │ │ │ └── impl │ │ │ │ ├── CompanyServiceImpl.java │ │ │ │ ├── ProductServiceImpl.java │ │ │ │ └── ProductTypeServiceImpl.java │ │ │ └── util │ │ │ └── ObjectMapperUtils.java │ └── resources │ │ ├── application.properties.dist │ │ ├── db │ │ ├── changelog │ │ │ ├── 01-schema.xml │ │ │ └── 02-data.xml │ │ └── liquibase-changelog.xml │ │ └── liquibase.properties.dist │ └── test │ ├── java │ └── hello │ │ └── controller │ │ └── annotation │ │ └── ProductTypeMapperAnnotationControllerTest.java │ └── resources │ └── application.properties.dist ├── rest-jpa-jackson-infinite-recursion ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-jpa-jackson-infinite-recursion.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── aspect │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ ├── dto │ │ │ │ ├── AbstractDtoRestController.java │ │ │ │ ├── ChairController.java │ │ │ │ └── TableStaffController.java │ │ │ ├── jsonIdentityInfo │ │ │ │ ├── CatalogController.java │ │ │ │ └── GoodController.java │ │ │ ├── jsonReference │ │ │ │ ├── CommentController.java │ │ │ │ └── PostController.java │ │ │ └── jsonView │ │ │ │ ├── CompanyController.java │ │ │ │ └── ProductController.java │ │ │ ├── entity │ │ │ ├── AbstractEntity.java │ │ │ ├── BaseEntity.java │ │ │ ├── dto │ │ │ │ ├── Chair.java │ │ │ │ ├── ChairDto.java │ │ │ │ ├── ChairWithoutTableStaffDto.java │ │ │ │ ├── TableStaff.java │ │ │ │ ├── TableStaffDto.java │ │ │ │ └── TableStaffWithoutChairDto.java │ │ │ ├── jsonIdentityInfo │ │ │ │ ├── Catalog.java │ │ │ │ └── Good.java │ │ │ ├── jsonReference │ │ │ │ ├── Comment.java │ │ │ │ └── Post.java │ │ │ └── jsonView │ │ │ │ ├── Company.java │ │ │ │ └── Product.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── ErrorCode.java │ │ │ └── NotFoundException.java │ │ │ ├── repository │ │ │ ├── dto │ │ │ │ ├── ChairRepository.java │ │ │ │ └── TableStaffRepository.java │ │ │ ├── jsonIdentityInfo │ │ │ │ ├── CatalogRepository.java │ │ │ │ └── GoodRepository.java │ │ │ ├── jsonReference │ │ │ │ ├── CommentRepository.java │ │ │ │ └── PostRepository.java │ │ │ └── jsonView │ │ │ │ ├── CompanyRepository.java │ │ │ │ └── ProductRepository.java │ │ │ ├── service │ │ │ ├── AbstractService.java │ │ │ ├── Service.java │ │ │ ├── dto │ │ │ │ ├── ChairService.java │ │ │ │ ├── TableStaffService.java │ │ │ │ └── impl │ │ │ │ │ ├── ChairServiceImpl.java │ │ │ │ │ └── TableStaffServiceImpl.java │ │ │ ├── jsonIdentityInfo │ │ │ │ ├── CatalogService.java │ │ │ │ ├── GoodService.java │ │ │ │ └── impl │ │ │ │ │ ├── CatalogServiceImpl.java │ │ │ │ │ └── GoodServiceImpl.java │ │ │ ├── jsonReference │ │ │ │ ├── CommentService.java │ │ │ │ ├── PostService.java │ │ │ │ └── impl │ │ │ │ │ ├── CommentServiceImpl.java │ │ │ │ │ └── PostServiceImpl.java │ │ │ └── jsonView │ │ │ │ ├── CompanyService.java │ │ │ │ ├── ProductService.java │ │ │ │ └── impl │ │ │ │ ├── CompanyServiceImpl.java │ │ │ │ └── ProductServiceImpl.java │ │ │ ├── util │ │ │ └── ObjectMapperUtils.java │ │ │ └── view │ │ │ ├── CommonViews.java │ │ │ ├── CompanyAndCommonViews.java │ │ │ ├── CompanyViews.java │ │ │ ├── ProductAndCommonViews.java │ │ │ └── ProductViews.java │ └── resources │ │ ├── application.properties.dist │ │ ├── db │ │ ├── changelog │ │ │ ├── 01-schema.xml │ │ │ └── 02-data.xml │ │ └── liquibase-changelog.xml │ │ └── liquibase.properties.dist │ └── test │ ├── java │ └── hello │ │ └── controller │ │ ├── jsonReference │ │ └── PostControllerTest.java │ │ └── jsonView │ │ └── CompanyControllerTest.java │ └── resources │ └── application.properties.dist ├── rest-jpa-store-json-to-db ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-jpa-store-json-to-db.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ └── customField │ │ │ │ └── EmployeeController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── customField │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── json │ │ │ ├── AbstractJsonSqlTypeDescriptor.java │ │ │ ├── JacksonUtil.java │ │ │ ├── JsonStringSqlTypeDescriptor.java │ │ │ ├── JsonStringType.java │ │ │ └── JsonTypeDescriptor.java │ │ │ ├── repository │ │ │ └── customField │ │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ ├── AbstractService.java │ │ │ ├── Service.java │ │ │ └── customField │ │ │ ├── EmployeeService.java │ │ │ └── impl │ │ │ └── EmployeeServiceImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── ApplicationTest.java │ │ └── controller │ │ └── customField │ │ └── EmployeeControllerTest.java │ └── resources │ ├── application.properties.dist │ └── employee.xml ├── rest-jpa-update ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-jpa-update.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ ├── classic │ │ │ │ └── EmployeeController.java │ │ │ ├── rawJson │ │ │ │ └── EmployeeRawJsonController.java │ │ │ └── reflection │ │ │ │ └── self │ │ │ │ └── EmployeeReflectionSelfController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntityWithLong.java │ │ │ ├── BaseEntity.java │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── repository │ │ │ └── EmployeeRepository.java │ │ │ ├── service │ │ │ ├── EmployeeService.java │ │ │ ├── Service.java │ │ │ ├── impl │ │ │ │ ├── AbstractService.java │ │ │ │ └── EmployeeServiceImpl.java │ │ │ ├── rawJson │ │ │ │ └── EmployeeRawJsonService.java │ │ │ └── reflection │ │ │ │ └── self │ │ │ │ └── EmployeeReflectionSelfService.java │ │ │ └── util │ │ │ └── ReflectionUtils.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── AbstractWebAppTest.java │ │ ├── ApplicationTest.java │ │ └── controller │ │ ├── classic │ │ └── EmployeeControllerTest.java │ │ ├── rawJson │ │ └── EmployeeRawJsonControllerTest.java │ │ └── reflection │ │ └── self │ │ └── EmployeeReflectionSelfControllerTest.java │ └── resources │ ├── application-test.properties │ └── employee.xml ├── rest-jpa-validation ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-jpa-validation.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── beanValidation │ │ │ ├── Person.java │ │ │ ├── customAnnotation │ │ │ │ ├── PersonAgeConstraint.java │ │ │ │ ├── PersonAgeConstraintValidator.java │ │ │ │ └── PersonWithCustomAnnotation.java │ │ │ ├── customTwoFieldsDate │ │ │ │ ├── DateIntervalBean.java │ │ │ │ ├── DateIntervalValidator.java │ │ │ │ ├── Operation.java │ │ │ │ └── ValidDateInterval.java │ │ │ └── customTwoFieldsInterval │ │ │ │ ├── Interval.java │ │ │ │ ├── IntervalValidator.java │ │ │ │ ├── ValidInterval.java │ │ │ │ └── ValidIntervals.java │ │ │ ├── controller │ │ │ ├── beanValidation │ │ │ │ └── EmployeeController.java │ │ │ └── springValidation │ │ │ │ └── PeopleController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntity.java │ │ │ ├── BaseEntity.java │ │ │ └── beanValidation │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── repository │ │ │ ├── beanValidation │ │ │ │ └── EmployeeRepository.java │ │ │ └── springValidation │ │ │ │ └── PeopleRepository.java │ │ │ ├── service │ │ │ ├── EmployeeService.java │ │ │ ├── PeopleService.java │ │ │ ├── Service.java │ │ │ └── impl │ │ │ │ ├── AbstractService.java │ │ │ │ ├── EmployeeServiceImpl.java │ │ │ │ └── PeopleServiceImpl.java │ │ │ ├── springValidation │ │ │ ├── People.java │ │ │ └── service │ │ │ │ └── PeopleValidator.java │ │ │ └── util │ │ │ └── ReflectionUtils.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── ApplicationTest.java │ │ ├── beanValidation │ │ ├── PersonTest.java │ │ ├── customAnnotation │ │ │ └── PersonWithCustomAnnotationTest.java │ │ ├── customTwoFieldsDate │ │ │ └── OperationTest.java │ │ └── customTwoFieldsInterval │ │ │ └── IntervalTest.java │ │ ├── controller │ │ ├── beanValidation │ │ │ ├── EmployeeControllerRestTemplateTest.java │ │ │ └── EmployeeControllerTest.java │ │ └── springValidation │ │ │ └── PeopleControllerRestTemplateTest.java │ │ └── springValidation │ │ └── PeopleTest.java │ └── resources │ ├── application.properties.dist │ └── employee.xml ├── rest-jpa ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-jpa.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ ├── oneToMany │ │ │ │ ├── CommentController.java │ │ │ │ ├── CommentWithPostIdInRouteController.java │ │ │ │ └── PostController.java │ │ │ └── single │ │ │ │ ├── EmployeeController.java │ │ │ │ └── bad │ │ │ │ └── EmployeeBadController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntityWithLong.java │ │ │ ├── BaseEntity.java │ │ │ ├── oneToMany │ │ │ │ ├── Comment.java │ │ │ │ └── Post.java │ │ │ └── single │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── repository │ │ │ ├── oneToMany │ │ │ │ ├── CommentRepository.java │ │ │ │ └── PostRepository.java │ │ │ └── single │ │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ ├── CommentService.java │ │ │ ├── CommentWithPostIdService.java │ │ │ ├── EmployeeService.java │ │ │ ├── PostService.java │ │ │ ├── Service.java │ │ │ └── impl │ │ │ ├── AbstractService.java │ │ │ ├── CommentServiceImpl.java │ │ │ ├── CommentWithPostIdServiceImpl.java │ │ │ ├── EmployeeServiceImpl.java │ │ │ └── PostServiceImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ ├── mockBean │ │ └── controller │ │ │ └── EmployeeControllerMockBeanTest.java │ │ ├── mockMvc │ │ ├── controller │ │ │ └── EmployeeControllerTest.java │ │ └── webApplication │ │ │ ├── CommentControllerTest.java │ │ │ ├── CommentWithPostIdInRouteControllerTest.java │ │ │ ├── EmployeeControllerWebApplicationTest.java │ │ │ └── PostControllerTest.java │ │ └── restTemplate │ │ └── EmployeeRestTemplateTest.java │ └── resources │ ├── application-test.properties │ ├── comment.xml │ ├── employee.xml │ └── post.xml ├── rest-static ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── inspectionProfiles │ │ └── Project_Default.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── rest-static.iml └── src │ ├── main │ ├── java │ │ └── examples │ │ │ ├── Application.java │ │ │ ├── controller │ │ │ ├── HomeController.java │ │ │ └── RestControllerEmployee.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── service │ │ │ ├── EmployeeService.java │ │ │ └── impl │ │ │ └── EmployeeServiceImpl.java │ └── resources │ │ └── templates │ │ └── home.html │ └── test │ └── java │ └── examples │ └── controller │ └── RestControllerEmployeeTest.java ├── rest-template ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── rest-template.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── advice │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── controller │ │ │ └── single │ │ │ │ └── EmployeeController.java │ │ │ ├── entity │ │ │ ├── AbstractBaseEntityWithLong.java │ │ │ ├── BaseEntity.java │ │ │ ├── User.java │ │ │ └── single │ │ │ │ └── Employee.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── EmployeeNotFoundException.java │ │ │ ├── ErrorCode.java │ │ │ ├── NotValidParamsException.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── repository │ │ │ └── single │ │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ ├── EmployeeService.java │ │ │ ├── Service.java │ │ │ ├── UserService.java │ │ │ └── impl │ │ │ ├── AbstractService.java │ │ │ ├── EmployeeServiceImpl.java │ │ │ └── UserServiceImpl.java │ └── resources │ │ └── application.properties.dist │ └── test │ ├── java │ └── hello │ │ ├── AbstractJpaTest.java │ │ ├── ApplicationTest.java │ │ ├── RestTemplateTest.java │ │ ├── TestRestTemplateTest.java │ │ └── service │ │ └── impl │ │ ├── UserServiceImplMockRestTest.java │ │ └── UserServiceImplTest.java │ └── resources │ ├── application-test.properties │ ├── comment.xml │ ├── employee.xml │ └── post.xml ├── routes ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── routes.iml └── src │ ├── main │ ├── java │ │ └── examples │ │ │ ├── Application.java │ │ │ ├── controller │ │ │ ├── HomeController.java │ │ │ ├── RoutesController.java │ │ │ └── extend │ │ │ │ ├── AbstractApiController.java │ │ │ │ └── CompanyController.java │ │ │ └── simpleconfigcontrollerandview │ │ │ └── MvcConfig.java │ └── resources │ │ ├── static │ │ └── static.html │ │ └── templates │ │ ├── cookie.html │ │ ├── display-all-get-params.html │ │ ├── display-get-params.html │ │ ├── home.html │ │ ├── only-get-param.html │ │ ├── only-get.html │ │ ├── owner-id-with-pets.html │ │ ├── owner-id.html │ │ ├── post.html │ │ ├── simple-form-for-display-post.html │ │ ├── simple-get.html │ │ ├── simple-mvc-config.html │ │ ├── with-not-required-get-params-simple.html │ │ ├── with-not-required-get-params.html │ │ ├── with-required-get-params.html │ │ └── with-two-get-params.html │ └── test │ └── java │ └── examples │ ├── ApplicationTest.java │ └── controller │ ├── HomeControllerTest.java │ ├── RoutesControllerTest.java │ └── extend │ └── AbstractApiControllerTest.java ├── scheduler-example ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── scheduler-example.iml └── src │ ├── main │ └── java │ │ └── examples │ │ ├── Application.java │ │ └── scheduler │ │ ├── ScheduledTasks.java │ │ └── config │ │ └── SchedulerConfig.java │ └── test │ └── java │ └── examples │ ├── ApplicationTest.java │ └── scheduler │ └── ScheduledTasksTest.java ├── security-jdbc-remember-me ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── security-jdbc-remember-me.iml ├── sql.sql └── src │ └── main │ ├── java │ └── examples │ │ ├── Application.java │ │ ├── MvcConfig.java │ │ ├── PasswordEncoderUtil.java │ │ └── WebSecurityConfig.java │ └── resources │ ├── application.properties.dist │ └── templates │ ├── 403.html │ ├── admin.html │ ├── hello.html │ ├── home.html │ └── login.html ├── security-jdbc ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── security-jdbc.iml ├── sql.sql └── src │ └── main │ ├── java │ └── examples │ │ ├── Application.java │ │ ├── MvcConfig.java │ │ ├── PasswordEncoderUtil.java │ │ └── WebSecurityConfig.java │ └── resources │ ├── application.properties.dist │ └── templates │ ├── 403.html │ ├── admin.html │ ├── hello.html │ ├── home.html │ └── login.html ├── security-memory-http-basic-api ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── security-memory-http-basic-api.iml └── src │ ├── main │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── aspect │ │ │ └── ExceptionControllerAdvice.java │ │ │ ├── config │ │ │ ├── Encoders.java │ │ │ ├── Permissions.java │ │ │ └── SecurityConfig.java │ │ │ ├── controller │ │ │ ├── CompanyController.java │ │ │ └── EncoderController.java │ │ │ ├── entity │ │ │ ├── Company.java │ │ │ └── User.java │ │ │ ├── exception │ │ │ ├── BaseException.java │ │ │ ├── ERROR_CODES.java │ │ │ └── NotFoundException.java │ │ │ ├── repository │ │ │ ├── CompanyRepository.java │ │ │ └── UserRepository.java │ │ │ └── service │ │ │ ├── CompanyService.java │ │ │ └── impl │ │ │ └── CompanyServiceImpl.java │ └── resources │ │ ├── application.properties.dist │ │ ├── db │ │ ├── changelog │ │ │ ├── 01-company-schema.xml │ │ │ └── 02-company-data.xml │ │ └── liquibase-changelog.xml │ │ └── liquibase.properties.dist │ └── test │ ├── java │ ├── hello │ │ └── controller │ │ │ ├── CompanyControllerSecurityTest.java │ │ │ └── CompanyControllerTest.java │ └── pathMatcher │ │ └── PathMatcherTest.java │ └── resources │ └── application.properties.dist ├── security-memory-http-basic ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── security-memory-http-basic.iml └── src │ ├── main │ ├── java │ │ └── examples │ │ │ ├── Application.java │ │ │ ├── MvcConfig.java │ │ │ └── WebSecurityConfig.java │ └── resources │ │ └── templates │ │ ├── 403.html │ │ ├── admin.html │ │ ├── hello.html │ │ └── home.html │ └── test │ └── java │ └── examples │ └── withMockUser │ └── ApplicationSecurityTest.java ├── security-memory-login-form ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── security-memory-login-form.iml └── src │ ├── main │ ├── java │ │ └── examples │ │ │ ├── Application.java │ │ │ ├── MvcConfig.java │ │ │ └── WebSecurityConfig.java │ └── resources │ │ └── templates │ │ ├── 403.html │ │ ├── admin.html │ │ ├── hello.html │ │ ├── home.html │ │ └── login.html │ └── test │ └── java │ └── examples │ ├── withHandleSetUserInMvc │ └── ApplicationSecurityTest.java │ └── withMockUser │ └── ApplicationSecurityTest.java ├── security-oauth2-memory-authorization-server-15 ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── README.md ├── pom.xml ├── security-oauth2-memory-authorization-server-15.iml └── src │ └── main │ ├── java │ └── com │ │ ├── Application.java │ │ ├── config │ │ ├── AuthorizationServerConfig.java │ │ ├── ResourceServerConfig.java │ │ └── SecurityConfig.java │ │ └── controller │ │ └── BaseController.java │ └── resources │ └── application.properties ├── test-datajpatest ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── model │ │ │ ├── AuditModel.java │ │ │ ├── Comment.java │ │ │ ├── Employee.java │ │ │ └── Post.java │ │ │ └── repository │ │ │ ├── CommentRepository.java │ │ │ ├── EmployeeRepository.java │ │ │ └── PostRepository.java │ └── test │ │ └── java │ │ └── hello │ │ └── repository │ │ └── EmployeeRepositoryTest.java └── test-datajpatest.iml ├── test-dbunit-testcontainer ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── jarRepositories.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── entity │ │ │ │ └── Employee.java │ │ │ │ ├── repository │ │ │ │ └── EmployeeRepository.java │ │ │ │ └── sqltracker │ │ │ │ ├── AssertSqlCount.java │ │ │ │ ├── QueryCountInfo.java │ │ │ │ ├── QueryCountInfoHandler.java │ │ │ │ ├── QueryCountInfoHolder.java │ │ │ │ ├── QueryHandler.java │ │ │ │ ├── QueryType.java │ │ │ │ ├── SqlCountMismatchException.java │ │ │ │ └── StatementInspectorImpl.java │ │ └── resources │ │ │ └── application.properties.dist │ └── test │ │ ├── java │ │ └── hello │ │ │ ├── AbstractJpaTest.java │ │ │ └── repository │ │ │ ├── EmployeeRepositoryFromAbstractTest.java │ │ │ └── EmployeeRepositoryTest.java │ │ └── resources │ │ ├── application-test.properties.dist │ │ ├── data.xml │ │ └── global-data.xml └── test-dbunit-testcontainer.iml ├── test-dbunit ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── jarRepositories.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── entity │ │ │ │ └── Employee.java │ │ │ │ ├── repository │ │ │ │ └── EmployeeRepository.java │ │ │ │ └── sqltracker │ │ │ │ ├── AssertSqlCount.java │ │ │ │ ├── QueryCountInfo.java │ │ │ │ ├── QueryCountInfoHandler.java │ │ │ │ ├── QueryCountInfoHolder.java │ │ │ │ ├── QueryHandler.java │ │ │ │ ├── QueryType.java │ │ │ │ ├── SqlCountMismatchException.java │ │ │ │ └── StatementInspectorImpl.java │ │ └── resources │ │ │ └── application.properties.dist │ └── test │ │ ├── java │ │ └── hello │ │ │ ├── AbstractJpaTest.java │ │ │ └── repository │ │ │ ├── EmployeeRepositoryFromAbstractTest.java │ │ │ └── EmployeeRepositoryTest.java │ │ └── resources │ │ ├── application-test.properties.dist │ │ ├── data.xml │ │ └── global-data.xml └── test-dbunit.iml ├── test-jpa-liquibase ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── business │ │ │ │ ├── AuthorsManager.java │ │ │ │ └── BooksManager.java │ │ │ │ └── persistence │ │ │ │ ├── entities │ │ │ │ ├── Author.java │ │ │ │ └── Book.java │ │ │ │ └── repositories │ │ │ │ ├── AuthorRepository.java │ │ │ │ └── BookRepository.java │ │ └── resources │ │ │ ├── application.properties.dist │ │ │ ├── db │ │ │ ├── changelog │ │ │ │ ├── 01-create-books-and-author-schema.xml │ │ │ │ ├── 02-create-release-tag-1.xml │ │ │ │ └── 03-create-new-table.xml │ │ │ └── liquibase-changelog.xml │ │ │ └── liquibase.properties.dist │ └── test │ │ ├── java │ │ ├── custom_config │ │ │ └── ConfigWithoutLiquibase.java │ │ └── hello │ │ │ ├── ApplicationTest.java │ │ │ ├── ApplicationTestWithoutLiquibaseByConfigClassTest.java │ │ │ ├── ApplicationWithoutLiquibaseTest.java │ │ │ └── business │ │ │ ├── AuthorsManagerTest.java │ │ │ └── BooksManagerTest.java │ │ └── resources │ │ ├── application.properties.dist │ │ ├── application_without_liquibase.properties.dist │ │ └── db │ │ ├── changelog │ │ ├── 04-insert-data-authors.xml │ │ └── 04-insert-data-books.xml │ │ └── liquibase-changelog.test.xml └── test-jpa-liquibase.iml ├── test-mvc ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── advice │ │ │ │ └── ExceptionControllerAdvice.java │ │ │ │ ├── controller │ │ │ │ ├── oneToMany │ │ │ │ │ ├── CommentController.java │ │ │ │ │ ├── CommentWithPostIdInRouteController.java │ │ │ │ │ └── PostController.java │ │ │ │ └── single │ │ │ │ │ ├── EmployeeController.java │ │ │ │ │ └── bad │ │ │ │ │ └── EmployeeBadController.java │ │ │ │ ├── entity │ │ │ │ ├── AbstractBaseEntityWithLong.java │ │ │ │ ├── BaseEntity.java │ │ │ │ ├── oneToMany │ │ │ │ │ ├── Comment.java │ │ │ │ │ └── Post.java │ │ │ │ └── single │ │ │ │ │ └── Employee.java │ │ │ │ ├── exception │ │ │ │ ├── BaseException.java │ │ │ │ ├── EmployeeNotFoundException.java │ │ │ │ ├── ErrorCode.java │ │ │ │ ├── NotValidParamsException.java │ │ │ │ └── ResourceNotFoundException.java │ │ │ │ ├── repository │ │ │ │ ├── oneToMany │ │ │ │ │ ├── CommentRepository.java │ │ │ │ │ └── PostRepository.java │ │ │ │ └── single │ │ │ │ │ └── EmployeeRepository.java │ │ │ │ └── service │ │ │ │ ├── CommentService.java │ │ │ │ ├── CommentWithPostIdService.java │ │ │ │ ├── EmployeeService.java │ │ │ │ ├── PostService.java │ │ │ │ ├── Service.java │ │ │ │ └── impl │ │ │ │ ├── AbstractService.java │ │ │ │ ├── CommentServiceImpl.java │ │ │ │ ├── CommentWithPostIdServiceImpl.java │ │ │ │ ├── EmployeeServiceImpl.java │ │ │ │ └── PostServiceImpl.java │ │ └── resources │ │ │ └── application.properties.dist │ └── test │ │ ├── java │ │ └── hello │ │ │ ├── ApplicationTest.java │ │ │ ├── mockBean │ │ │ └── controller │ │ │ │ └── EmployeeControllerMockBeanTest.java │ │ │ ├── mockMvc │ │ │ ├── controller │ │ │ │ └── EmployeeControllerTest.java │ │ │ └── webApplication │ │ │ │ ├── CommentControllerTest.java │ │ │ │ ├── CommentWithPostIdInRouteControllerTest.java │ │ │ │ ├── EmployeeControllerWebApplicationTest.java │ │ │ │ └── PostControllerTest.java │ │ │ └── restTemplate │ │ │ └── EmployeeRestTemplateTest.java │ │ └── resources │ │ ├── application.properties.dist │ │ ├── comment.xml │ │ ├── employee.xml │ │ └── post.xml └── test-mvc.iml ├── test-rest-jpa ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── advice │ │ │ │ └── ExceptionControllerAdvice.java │ │ │ │ ├── controller │ │ │ │ ├── oneToMany │ │ │ │ │ ├── CommentController.java │ │ │ │ │ ├── CommentWithPostIdInRouteController.java │ │ │ │ │ └── PostController.java │ │ │ │ └── single │ │ │ │ │ ├── EmployeeController.java │ │ │ │ │ └── bad │ │ │ │ │ └── EmployeeBadController.java │ │ │ │ ├── entity │ │ │ │ ├── AbstractBaseEntityWithLong.java │ │ │ │ ├── BaseEntity.java │ │ │ │ ├── oneToMany │ │ │ │ │ ├── Comment.java │ │ │ │ │ └── Post.java │ │ │ │ └── single │ │ │ │ │ └── Employee.java │ │ │ │ ├── exception │ │ │ │ ├── BaseException.java │ │ │ │ ├── EmployeeNotFoundException.java │ │ │ │ ├── ErrorCode.java │ │ │ │ ├── NotValidParamsException.java │ │ │ │ └── ResourceNotFoundException.java │ │ │ │ ├── repository │ │ │ │ ├── oneToMany │ │ │ │ │ ├── CommentRepository.java │ │ │ │ │ └── PostRepository.java │ │ │ │ └── single │ │ │ │ │ └── EmployeeRepository.java │ │ │ │ └── service │ │ │ │ ├── CommentService.java │ │ │ │ ├── CommentWithPostIdService.java │ │ │ │ ├── EmployeeService.java │ │ │ │ ├── PostService.java │ │ │ │ ├── Service.java │ │ │ │ └── impl │ │ │ │ ├── AbstractService.java │ │ │ │ ├── CommentServiceImpl.java │ │ │ │ ├── CommentWithPostIdServiceImpl.java │ │ │ │ ├── EmployeeServiceImpl.java │ │ │ │ └── PostServiceImpl.java │ │ └── resources │ │ │ └── application.properties.dist │ └── test │ │ ├── java │ │ └── hello │ │ │ ├── mock_mvc │ │ │ ├── controller │ │ │ │ ├── spring_boot_test │ │ │ │ │ └── EmployeeControllerTest.java │ │ │ │ └── spring_runner │ │ │ │ │ ├── ConfigTest.java │ │ │ │ │ └── EmployeeControllerTest.java │ │ │ └── webApplication │ │ │ │ ├── inMemoryDb │ │ │ │ └── EmployeeControllerWebApplicationTest.java │ │ │ │ └── mockBean │ │ │ │ └── EmployeeControllerMockBeanTest.java │ │ │ └── rest_template │ │ │ └── EmployeeRestTemplateTest.java │ │ └── resources │ │ ├── application.properties.dist │ │ └── data.xml └── test-rest-jpa.iml ├── test-security-memory-basic-rest ├── .gitignore ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── aspect │ │ │ │ └── ExceptionControllerAdvice.java │ │ │ │ ├── config │ │ │ │ ├── Encoders.java │ │ │ │ ├── Permissions.java │ │ │ │ └── SecurityConfig.java │ │ │ │ ├── controller │ │ │ │ ├── CompanyController.java │ │ │ │ └── EncoderController.java │ │ │ │ ├── entity │ │ │ │ ├── Company.java │ │ │ │ └── User.java │ │ │ │ ├── exception │ │ │ │ ├── BaseException.java │ │ │ │ ├── ERROR_CODES.java │ │ │ │ └── NotFoundException.java │ │ │ │ ├── repository │ │ │ │ ├── CompanyRepository.java │ │ │ │ └── UserRepository.java │ │ │ │ └── service │ │ │ │ ├── CompanyService.java │ │ │ │ └── impl │ │ │ │ └── CompanyServiceImpl.java │ │ └── resources │ │ │ ├── application.properties.dist │ │ │ ├── db │ │ │ ├── changelog │ │ │ │ ├── 01-company-schema.xml │ │ │ │ └── 02-company-data.xml │ │ │ └── liquibase-changelog.xml │ │ │ └── liquibase.properties.dist │ └── test │ │ ├── java │ │ ├── hello │ │ │ └── controller │ │ │ │ ├── CompanyControllerSecurityTest.java │ │ │ │ └── CompanyControllerTest.java │ │ └── pathMatcher │ │ │ └── PathMatcherTest.java │ │ └── resources │ │ └── application.properties.dist └── test-security-memory-basic-rest.iml ├── test-security-memory-login-form ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── examples │ │ │ │ ├── Application.java │ │ │ │ ├── MvcConfig.java │ │ │ │ └── WebSecurityConfig.java │ │ └── resources │ │ │ └── templates │ │ │ ├── 403.html │ │ │ ├── admin.html │ │ │ ├── hello.html │ │ │ ├── home.html │ │ │ └── login.html │ └── test │ │ └── java │ │ └── examples │ │ ├── withHandleSetUserInMvc │ │ └── ApplicationSecurityTest.java │ │ └── withMockUser │ │ └── ApplicationSecurityTest.java └── test-security-memory-login-form.iml ├── test-spock ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── log │ └── .gitignore ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── advice │ │ │ │ └── ExceptionControllerAdvice.java │ │ │ │ ├── controller │ │ │ │ └── EmployeeController.java │ │ │ │ ├── entity │ │ │ │ ├── AbstractBaseEntity.java │ │ │ │ ├── BaseEntity.java │ │ │ │ └── Employee.java │ │ │ │ ├── exception │ │ │ │ ├── BaseException.java │ │ │ │ ├── ErrorCode.java │ │ │ │ ├── NotValidParamsException.java │ │ │ │ └── ResourceNotFoundException.java │ │ │ │ ├── repository │ │ │ │ └── EmployeeRepository.java │ │ │ │ └── service │ │ │ │ ├── AbstractService.java │ │ │ │ ├── EmployeeService.java │ │ │ │ ├── Service.java │ │ │ │ └── impl │ │ │ │ └── EmployeeServiceImpl.java │ │ └── resources │ │ │ ├── application.properties.dist │ │ │ └── log4j.properties │ └── test │ │ ├── java │ │ └── hello │ │ │ ├── ApplicationSpockTest.groovy │ │ │ ├── ApplicationTest.java │ │ │ ├── controller │ │ │ ├── EmployeeControllerSpockTest.groovy │ │ │ └── EmployeeControllerTest.java │ │ │ └── service │ │ │ └── impl │ │ │ ├── EmployeeServiceImplSpockTest.groovy │ │ │ └── EmployeeServiceImplTest.java │ │ └── resources │ │ ├── application-test.properties │ │ ├── employee.xml │ │ └── log4j.properties └── test-spock.iml ├── test-spring-async-synctaskexecutor ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── examples │ │ │ │ ├── Application.java │ │ │ │ ├── asyncexceptionhandler │ │ │ │ └── AsyncExceptionHandler.java │ │ │ │ ├── configasync │ │ │ │ ├── GlobalAsyncConfig.java │ │ │ │ └── LocalAsyncConfig.java │ │ │ │ ├── model │ │ │ │ └── User.java │ │ │ │ └── multithreads │ │ │ │ └── service │ │ │ │ ├── GitHubLookupCompletableFutureService.java │ │ │ │ ├── SimpleVoidService.java │ │ │ │ └── UserCreatorFutureService.java │ │ └── resources │ │ │ └── application.properties │ └── test │ │ └── java │ │ └── examples │ │ ├── ClassTestConfig.java │ │ ├── GlobalSyncConfig.java │ │ ├── TestApplication.java │ │ ├── multithreads │ │ └── service │ │ │ ├── GitHubLookupCompletableFutureServiceTest.java │ │ │ └── SimpleVoidServiceTest.java │ │ └── onethread │ │ └── service │ │ ├── GitHubLookupCompletableFutureServiceTest.java │ │ └── SimpleVoidServiceTest.java └── test-spring-async-synctaskexecutor.iml ├── test-spring-with-profile ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ └── net │ │ │ └── lkrnac │ │ │ └── blog │ │ │ └── testing │ │ │ └── mockbeanv2 │ │ │ ├── AopApplication.java │ │ │ ├── SimpleApplication.java │ │ │ └── beans │ │ │ ├── AddressDao.java │ │ │ ├── AddressService.java │ │ │ └── UserService.java │ └── test │ │ └── java │ │ └── net │ │ └── lkrnac │ │ └── blog │ │ └── testing │ │ └── mockbeanv2 │ │ ├── aoptesting │ │ ├── AddressDaoFake.java │ │ ├── AddressDaoMock.java │ │ ├── AddressLogger.java │ │ ├── AddressServiceAopFakeITest.java │ │ ├── AddressServiceAopMockITest.java │ │ ├── AddressServiceSpy.java │ │ └── UserServiceAopITest.java │ │ └── beans │ │ ├── AddressDaoTestConfiguration.java │ │ ├── AddressServiceITest.java │ │ ├── AddressServiceTestConfiguration.java │ │ └── UserServiceITest.java └── test-spring-with-profile.iml ├── test-spring ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── dao │ │ │ │ ├── EmployeeDao.java │ │ │ │ └── impl │ │ │ │ │ └── EmployeeDaoImpl.java │ │ │ │ ├── model │ │ │ │ └── Employee.java │ │ │ │ ├── service │ │ │ │ ├── EmployeeService.java │ │ │ │ └── impl │ │ │ │ │ └── EmployeeServiceImpl.java │ │ │ │ └── simplelogic │ │ │ │ ├── MyService.java │ │ │ │ ├── MyServiceWithTwoDeps.java │ │ │ │ ├── data │ │ │ │ └── Data.java │ │ │ │ └── util │ │ │ │ └── ConcatStr.java │ │ └── resources │ │ │ ├── application.properties.dist │ │ │ └── db.sql │ └── test │ │ ├── java │ │ ├── commonconfig │ │ │ └── CommonConfig.java │ │ ├── integration │ │ │ ├── with_common_config │ │ │ │ └── MyServiceTest.java │ │ │ ├── with_config_local │ │ │ │ ├── MyServiceTest.java │ │ │ │ └── MyServiceTestConfig.java │ │ │ └── with_config_main_package │ │ │ │ └── EmployeeDaoImplTest.java │ │ └── unit │ │ │ ├── bare_junit │ │ │ └── EmployeeTest.java │ │ │ ├── mockito_bean_with_scan │ │ │ ├── MyServiceTest.java │ │ │ └── MyServiceTestConfig.java │ │ │ ├── mockito_bean_without_scan │ │ │ ├── MyServiceTest.java │ │ │ └── MyServiceTestConfig.java │ │ │ ├── mockito_junit_runner │ │ │ ├── MyServiceTest.java │ │ │ └── MyServiceWithTwoDepsTest.java │ │ │ └── mockito_spring_runner │ │ │ ├── MyServiceTest.java │ │ │ └── MyServiceWithTwoDepsTest.java │ │ └── resources │ │ └── application.properties.dist └── test-spring.iml ├── test-springboottest ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── controller │ │ │ │ └── RestControllerEmployee.java │ │ │ │ ├── dao │ │ │ │ ├── EmployeeDao.java │ │ │ │ └── impl │ │ │ │ │ └── EmployeeDaoImpl.java │ │ │ │ ├── model │ │ │ │ └── Employee.java │ │ │ │ └── service │ │ │ │ ├── EmployeeService.java │ │ │ │ └── impl │ │ │ │ └── EmployeeServiceImpl.java │ │ └── resources │ │ │ ├── application.properties.dist │ │ │ ├── db.sql │ │ │ └── templates │ │ │ └── uploadForm.html │ └── test │ │ ├── java │ │ └── hello │ │ │ ├── mocking │ │ │ └── service │ │ │ │ └── EmployeeServiceImplTest.java │ │ │ └── nothingmocking │ │ │ ├── ApplicationTest.java │ │ │ ├── MvcMockTest.java │ │ │ ├── TestRestTemplateTest.java │ │ │ └── dao │ │ │ └── EmployeeDaoImplTest.java │ │ └── resources │ │ └── application.properties.dist └── test-springboottest.iml ├── transaction-declarative-aspectj ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── dao │ │ │ │ ├── EmployeeDao.java │ │ │ │ └── impl │ │ │ │ │ └── EmployeeDaoImpl.java │ │ │ │ ├── model │ │ │ │ └── Employee.java │ │ │ │ └── service │ │ │ │ ├── EmployeeService.java │ │ │ │ └── transaction │ │ │ │ └── impl │ │ │ │ └── EmployeeServiceWithTransactional.java │ │ └── resources │ │ │ ├── application.properties.dist │ │ │ └── db.sql │ └── test │ │ ├── java │ │ └── hello │ │ │ ├── TestConfig.java │ │ │ └── service │ │ │ └── transaction │ │ │ └── impl │ │ │ └── EmployeeServiceImplTest.java │ │ └── resources │ │ └── application.properties.dist └── transaction-declarative-aspectj.iml ├── transaction-declarative ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── dao │ │ │ │ ├── EmployeeDao.java │ │ │ │ └── impl │ │ │ │ │ └── EmployeeDaoImpl.java │ │ │ │ ├── model │ │ │ │ └── Employee.java │ │ │ │ └── service │ │ │ │ ├── EmployeeService.java │ │ │ │ ├── transaction │ │ │ │ └── impl │ │ │ │ │ └── EmployeeServiceWithTransactional.java │ │ │ │ └── without_transaction │ │ │ │ └── impl │ │ │ │ └── EmployeeServiceWithoutTransactional.java │ │ └── resources │ │ │ ├── application.properties.dist │ │ │ └── db.sql │ └── test │ │ ├── java │ │ └── hello │ │ │ └── service │ │ │ ├── transaction │ │ │ └── impl │ │ │ │ ├── EmployeeServiceImplTest.java │ │ │ │ └── EmployeeServiceImplTestConfig.java │ │ │ └── without_transaction │ │ │ └── impl │ │ │ ├── EmployeeServiceImplTest.java │ │ │ └── EmployeeServiceImplTestConfig.java │ │ └── resources │ │ └── application.properties.dist └── transaction-declarative.iml ├── transaction-programmatic ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── db.sql ├── pom.xml ├── readme.md ├── src │ └── main │ │ ├── java │ │ └── hello │ │ │ ├── Application.java │ │ │ ├── CheckTransaction.java │ │ │ ├── dao │ │ │ ├── EmployeeDao.java │ │ │ └── impl │ │ │ │ └── EmployeeDaoImpl.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── service │ │ │ ├── EmployeeService.java │ │ │ └── impl │ │ │ └── EmployeeServiceImpl.java │ │ └── resources │ │ ├── application.properties.dist │ │ └── templates │ │ └── uploadForm.html └── transaction-programmatic.iml ├── transactional-pitfalls ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── hello │ │ │ │ ├── Application.java │ │ │ │ ├── dao │ │ │ │ ├── EmployeeDao.java │ │ │ │ └── impl │ │ │ │ │ └── EmployeeDaoImpl.java │ │ │ │ ├── model │ │ │ │ └── Employee.java │ │ │ │ └── service │ │ │ │ ├── EmployeeService.java │ │ │ │ ├── self │ │ │ │ └── inject │ │ │ │ │ └── EmployeeServiceSelfInject.java │ │ │ │ └── transaction │ │ │ │ └── impl │ │ │ │ └── EmployeeServiceWithTransactional.java │ │ └── resources │ │ │ ├── application.properties.dist │ │ │ └── db.sql │ └── test │ │ ├── java │ │ └── hello │ │ │ └── service │ │ │ ├── self │ │ │ └── inject │ │ │ │ ├── EmployeeServiceImplTestConfig.java │ │ │ │ └── EmployeeServiceSelfInjectTest.java │ │ │ └── transaction │ │ │ └── impl │ │ │ ├── EmployeeServiceImplTest.java │ │ │ └── EmployeeServiceImplTestConfig.java │ │ └── resources │ │ └── application.properties.dist └── transactional-pitfalls.iml ├── web-flux-and-mono ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ ├── DemoApplication.java │ │ │ │ └── User.java │ │ └── resources │ │ │ └── application.properties.dest │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── demo │ │ ├── AbstractTest.java │ │ ├── DemoApplicationTests.java │ │ ├── FluxTest.java │ │ └── MonoTest.java └── web-flux-and-mono.iml ├── web-flux-rest-simple ├── .gitignore ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── modules.xml │ └── vcs.xml ├── pom.xml ├── readme.md ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ ├── DemoApplication.java │ │ │ │ ├── GreetingHandler.java │ │ │ │ ├── GreetingRouter.java │ │ │ │ └── GreetingWebClient.java │ │ └── resources │ │ │ └── application.properties.dest │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── demo │ │ ├── DemoApplicationTests.java │ │ └── GreetingRouterTest.java └── web-flux-rest-simple.iml └── websocket-simple ├── .gitignore ├── .idea ├── .gitignore ├── compiler.xml ├── encodings.xml ├── modules.xml └── vcs.xml ├── mvnw ├── mvnw.cmd ├── pom.xml ├── readme.md ├── src ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── messagingstompwebsocket │ │ │ ├── Greeting.java │ │ │ ├── GreetingController.java │ │ │ ├── HelloMessage.java │ │ │ ├── JacksonUtil.java │ │ │ ├── MessagingStompWebsocketApplication.java │ │ │ └── WebSocketConfig.java │ └── resources │ │ └── static │ │ ├── app.js │ │ ├── index.html │ │ └── main.css └── test │ └── java │ └── com │ └── example │ └── messagingstompwebsocket │ ├── Cat.java │ ├── MessagingStompWebsocketApplicationTest.java │ └── WebSocketClientTest.java └── websocket-simple.iml /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea -------------------------------------------------------------------------------- /active-profile/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /active-profile/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /active-profile/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /active-profile/readme.md: -------------------------------------------------------------------------------- 1 | # Change spring profile 2 | 3 | ## 1. from command line 4 | 5 | java -jar -Dspring.profiles.active=dev application 6 | 7 | ## 2. in spring boot set in application.properties: 8 | 9 | spring.profiles.active=dev -------------------------------------------------------------------------------- /active-profile/src/main/resources/application-dev.properties: -------------------------------------------------------------------------------- 1 | server.port = 9090 -------------------------------------------------------------------------------- /active-profile/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8080 2 | # set other profile - start load application-dev.properties 3 | spring.profiles.active=dev -------------------------------------------------------------------------------- /aop-rest/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /aop-rest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /aop-rest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /aop-rest/src/main/java/examples/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package examples.service; 2 | 3 | import examples.model.Employee; 4 | 5 | import java.util.List; 6 | 7 | public interface EmployeeService { 8 | 9 | Employee getById(int id); 10 | 11 | List getAll(); 12 | 13 | int create(Employee employee); 14 | } 15 | -------------------------------------------------------------------------------- /aop/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /aop/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /aop/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /application-listener/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /application-listener/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /application-listener/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /async/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /async/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /async/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /async/src/test/java/examples/ClassTestConfig.java: -------------------------------------------------------------------------------- 1 | package examples; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("examples") 8 | public class ClassTestConfig { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /autowiring-generic/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /autowiring-generic/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /autowiring-generic/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /autowiring-generic/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /autowiring-generic/src/main/java/hello/dao/GeneralDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao; 2 | 3 | public interface GeneralDao { 4 | T get(Long id); 5 | } 6 | -------------------------------------------------------------------------------- /autowiring-generic/src/main/java/hello/service/GeneralService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | public interface GeneralService { 4 | T get(Long id); 5 | } 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /cache-rest-jpa/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cache-rest-jpa/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | Long getId(); 5 | void setId(Long id); 6 | } 7 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/exception/ErrorCode.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public enum ErrorCode { 4 | 5 | OBJECT_NOT_FOUND(1), 6 | ; 7 | 8 | private final int code; 9 | 10 | private ErrorCode(int code){ 11 | this.code = code; 12 | } 13 | 14 | public int getValue(){ 15 | return code; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/exception/NotFoundException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotFoundException extends BaseException { 4 | 5 | private static final long serialVersionUID = 38816005992204401L; 6 | 7 | public NotFoundException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.User; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface UserRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/service/BaseService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import java.util.List; 4 | 5 | public interface BaseService { 6 | 7 | T getById(ID id); 8 | 9 | List getAll(); 10 | } 11 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/service/UserCacheableService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.User; 4 | 5 | import java.util.List; 6 | 7 | public interface UserCacheableService { 8 | 9 | User getById(Long id); 10 | 11 | List getAll(); 12 | } 13 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/service/UserService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.User; 4 | 5 | public interface UserService extends BaseService { 6 | } 7 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/container/OrderType.java: -------------------------------------------------------------------------------- 1 | package hello.container; 2 | 3 | public enum OrderType { 4 | ASC, 5 | DESC 6 | } 7 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/dao/oneToMany/CommentDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Comment; 5 | 6 | import java.util.List; 7 | 8 | public interface CommentDao extends BaseDao { 9 | 10 | public List findByPostId(Long postId); 11 | } 12 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/dao/oneToMany/PostDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Post; 5 | 6 | public interface PostDao extends BaseDao { 7 | } 8 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/dao/single/EmployeeDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.single; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.single.Employee; 5 | 6 | import java.util.List; 7 | 8 | public interface EmployeeDao extends BaseDao { 9 | 10 | public List findByName(String name); 11 | } 12 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | } 9 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/util/StringUtil.java: -------------------------------------------------------------------------------- 1 | package hello.util; 2 | 3 | public final class StringUtil { 4 | 5 | public static boolean convertToBoolean(String str) { 6 | String trim = str.trim(); 7 | return !trim.equals("") && !trim.equals("0") && !trim.toLowerCase().equals("false"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /dao-jpa-criteria/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /dao-jpa-criteria/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /dao-jpa-criteria/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/container/OrderType.java: -------------------------------------------------------------------------------- 1 | package hello.container; 2 | 3 | public enum OrderType { 4 | ASC, 5 | DESC 6 | } 7 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/dao/oneToMany/PostDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Post; 5 | 6 | public interface PostDao extends BaseDao { 7 | } 8 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/dao/single/EmployeeDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.single; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.single.Employee; 5 | 6 | import java.util.List; 7 | 8 | public interface EmployeeDao extends BaseDao { 9 | 10 | public List findByName(String name); 11 | } 12 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | } 9 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/util/StringUtil.java: -------------------------------------------------------------------------------- 1 | package hello.util; 2 | 3 | public final class StringUtil { 4 | 5 | public static boolean convertToBoolean(String str) { 6 | String trim = str.trim(); 7 | return !trim.equals("") && !trim.equals("0") && !trim.toLowerCase().equals("false"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /exception-handler-controller/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /exception-handler-controller/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /exception-handler-controller/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /exception-handler-controller/readme.md: -------------------------------------------------------------------------------- 1 | # Exception handler 2 | 3 | Handle exception with @ExceptionHandler in controller 4 | 5 | Important! @ExceptionHandler - handle exception in current controller, if exception happened in other controller - not be handle 6 | 7 | Go to route: "/" for see routes -------------------------------------------------------------------------------- /exception-handler-global/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /exception-handler-global/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /exception-handler-global/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /file-upload-simple/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /file-upload-simple/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /file-upload-simple/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /file-upload-simple/src/main/java/hello/storage/FileStorage.java: -------------------------------------------------------------------------------- 1 | package hello.storage; 2 | 3 | import org.springframework.web.multipart.MultipartFile; 4 | 5 | public interface FileStorage { 6 | 7 | String UPLOAD_DIR = "/home/vasya/test"; 8 | 9 | void save(MultipartFile file); 10 | } -------------------------------------------------------------------------------- /file-upload-simple/src/main/java/hello/storage/StorageException.java: -------------------------------------------------------------------------------- 1 | package hello.storage; 2 | 3 | public class StorageException extends RuntimeException { 4 | 5 | public StorageException(String message) { 6 | super(message); 7 | } 8 | 9 | public StorageException(String message, Throwable cause) { 10 | super(message, cause); 11 | } 12 | } -------------------------------------------------------------------------------- /file-upload-simple/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.servlet.multipart.max-file-size=128KB 2 | spring.servlet.multipart.max-request-size=128KB 3 | spring.http.multipart.enabled=false -------------------------------------------------------------------------------- /file-upload/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /file-upload/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /file-upload/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /file-upload/src/main/java/hello/storage/StorageException.java: -------------------------------------------------------------------------------- 1 | package hello.storage; 2 | 3 | public class StorageException extends RuntimeException { 4 | 5 | public StorageException(String message) { 6 | super(message); 7 | } 8 | 9 | public StorageException(String message, Throwable cause) { 10 | super(message, cause); 11 | } 12 | } -------------------------------------------------------------------------------- /file-upload/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.servlet.multipart.max-file-size=128KB 2 | spring.servlet.multipart.max-request-size=128KB 3 | spring.http.multipart.enabled=false -------------------------------------------------------------------------------- /form-with-validate/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /form-with-validate/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /form-with-validate/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /form-with-validate/readme.md: -------------------------------------------------------------------------------- 1 | # Validate with Spring 2 | 3 | ### Two approach: 4 | 1. With annotation (javax.validation.constraints.*) see example: 5 | `/src/main/java/examples/model/annotations/DataWithAnnotationValidate.java` 6 | 2. With Validator (org.springframework.validation.Validator) see example: 7 | `/src/main/java/examples/validate/DataValidator.java` -------------------------------------------------------------------------------- /form-with-validate/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | empty.id=id cannot be null. 2 | not_zero.id=The value id must be more than zero. 3 | empty.content=content cannot be empty. 4 | invalid_length.content=content must be between 1 and 20 characters long. 5 | invalid_data.content=content must be alphanumeric with no spaces. -------------------------------------------------------------------------------- /get-bean/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /get-bean/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /get-bean/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /get-bean/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Freeongoo/spring-examples/48ffdf267837f95e67bf1f702812b57647afbf5e/get-bean/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /get-bean/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /get-bean/readme.md: -------------------------------------------------------------------------------- 1 | # Get Bean by ApplicationContext 2 | 3 | This is an example of how to get an existing bean using ApplicationContext 4 | 5 | ## Tests 6 | 7 | see: `/src/test/java/com/example/getbean/ApplicationContextTest.java` -------------------------------------------------------------------------------- /get-bean/src/main/java/com/example/getbean/service/ServiceA.java: -------------------------------------------------------------------------------- 1 | package com.example.getbean.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service 6 | public class ServiceA { 7 | 8 | public String getHi() { 9 | return "hi from service A"; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /get-bean/src/main/java/com/example/getbean/service/a/SomeService.java: -------------------------------------------------------------------------------- 1 | package com.example.getbean.service.a; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service("servicePackageA") 6 | public class SomeService { 7 | public String getHi() { 8 | return "hi from service package a"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /get-bean/src/main/java/com/example/getbean/service/b/SomeService.java: -------------------------------------------------------------------------------- 1 | package com.example.getbean.service.b; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service("servicePackageB") 6 | public class SomeService { 7 | public String getHi() { 8 | return "hi from service package b"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/src/test/resources/good-read-only.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cascade/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-cascade/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cascade/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-cascade/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cascade/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-cascade/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-composite-key/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-composite-key/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /hibernate-composite-key/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/src/test/resources/book_author.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | -------------------------------------------------------------------------------- /hibernate-composite-key/src/test/resources/right_dictionary_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | public interface BaseEntity extends Serializable { 6 | 7 | ID getId(); 8 | 9 | void setId(ID id); 10 | 11 | String getName(); 12 | 13 | void setName(String name); 14 | } 15 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/test/resources/book.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/test/resources/client.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/test/resources/good.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/test/resources/user.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-many-to-many/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-many-to-many/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-many-to-many/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-many-to-many/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-many-to-many/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | Long getId(); 6 | 7 | void setId(Long id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /hibernate-many-to-many/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-many-to-many/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-one-to-one/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-one-to-one/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | Long getId(); 6 | 7 | void setId(Long id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /hibernate-one-to-one/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/src/test/java/hello/entity/bidirectional/twoMain/joinColumn/BookTest.java: -------------------------------------------------------------------------------- 1 | package hello.entity.bidirectional.twoMain.joinColumn; 2 | 3 | import hello.AbstractJpaTest; 4 | import org.junit.Test; 5 | 6 | public class BookTest extends AbstractJpaTest { 7 | 8 | @Test 9 | public void smoke() { 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /hibernate-one-to-one/src/test/resources/user_role.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/readme.md: -------------------------------------------------------------------------------- 1 | # Learn Hibernate @Pre.. @Post annotations 2 | 3 | ## Configuration 4 | 5 | For main and test dirs: 6 | `cp application.properties.dist application.properties` 7 | 8 | ## Testing 9 | 10 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-problems/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-problems/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-problems/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-problems/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-problems/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /hibernate-problems/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-problems/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-problems/src/test/resources/client.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-problems/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/src/main/java/example/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package example.dao; 2 | 3 | import java.util.List; 4 | 5 | import example.model.UserDetails; 6 | 7 | public interface UserDao { 8 | 9 | List getUserDetails(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/src/main/java/example/service/UserService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package example.service; 5 | 6 | import java.util.List; 7 | 8 | import example.model.UserDetails; 9 | 10 | public interface UserService { 11 | 12 | List getUserDetails(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /hibernate-spring-boot/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-spring-boot/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /hibernate-spring-boot/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-spring-boot/src/main/java/example/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package example.dao; 2 | 3 | import java.util.List; 4 | 5 | import example.model.UserDetails; 6 | 7 | public interface UserDao { 8 | 9 | List getUserDetails(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /hibernate-spring-boot/src/main/java/example/service/UserService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package example.service; 5 | 6 | import java.util.List; 7 | 8 | import example.model.UserDetails; 9 | 10 | public interface UserService { 11 | 12 | List getUserDetails(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /hibernate-structure/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-structure/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /hibernate-structure/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-structure/src/main/java/example/dao/Dao.java: -------------------------------------------------------------------------------- 1 | package example.dao; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | public interface Dao { 7 | List getAll(); 8 | T getByKey(PK key); 9 | void persist(T entity); 10 | void saveOrUpdate(T entity); 11 | void delete(T entity); 12 | void flush(); 13 | } 14 | -------------------------------------------------------------------------------- /hibernate-structure/src/main/java/example/utils/JsonUtil.java: -------------------------------------------------------------------------------- 1 | package example.utils; 2 | 3 | public class JsonUtil { 4 | 5 | public static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss"; 6 | } 7 | -------------------------------------------------------------------------------- /interceptor/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /interceptor/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /interceptor/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /interceptor/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # If want change local in properties file: 2 | #spring.mvc.locale=fr 3 | #spring.mvc.locale-resolver=fixed 4 | 5 | logging.file=log.log -------------------------------------------------------------------------------- /interceptor/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | greeting=I like how websites know my language! 2 | lang.change=Move to another language 3 | trulala=Trulala 4 | lang.eng=English 5 | lang.fr=French -------------------------------------------------------------------------------- /interceptor/src/main/resources/messages_fr.properties: -------------------------------------------------------------------------------- 1 | greeting=J'aime la façon dont les sites Web connaissent ma langue! 2 | lang.change=Passer à une autre langue 3 | trulala=Trulala in French :) 4 | lang.eng=Anglais 5 | lang.fr=Francais -------------------------------------------------------------------------------- /internationalization/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /internationalization/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /internationalization/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /internationalization/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # If want change local in properties file: 2 | #spring.mvc.locale=fr 3 | #spring.mvc.locale-resolver=fixed -------------------------------------------------------------------------------- /internationalization/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | greeting=I like how websites know my language! 2 | lang.change=Move to another language 3 | trulala=Trulala 4 | lang.eng=English 5 | lang.fr=French -------------------------------------------------------------------------------- /internationalization/src/main/resources/messages_fr.properties: -------------------------------------------------------------------------------- 1 | greeting=J'aime la façon dont les sites Web connaissent ma langue! 2 | lang.change=Passer à une autre langue 3 | trulala=Trulala in French :) 4 | lang.eng=Anglais 5 | lang.fr=Francais -------------------------------------------------------------------------------- /jackson-annotation/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jackson-annotation/src/main/java/hello/JsonView/Views.java: -------------------------------------------------------------------------------- 1 | package hello.JsonView; 2 | 3 | public class Views { 4 | public static class Public { } 5 | public static class Private { } 6 | } 7 | -------------------------------------------------------------------------------- /jackson-annotation/src/main/java/hello/model/Gender.java: -------------------------------------------------------------------------------- 1 | package hello.model; 2 | 3 | public enum Gender { 4 | MALE, 5 | FEMALE 6 | } 7 | -------------------------------------------------------------------------------- /jackson-annotation/src/main/java/jsonArray/JsonArray.java: -------------------------------------------------------------------------------- 1 | package jsonArray; 2 | 3 | public class JsonArray { 4 | private Long[] numbers; 5 | 6 | public Long[] getNumbers() { 7 | return numbers; 8 | } 9 | 10 | public void setNumbers(Long[] numbers) { 11 | this.numbers = numbers; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /jackson-annotation/src/main/java/jsonList/JsonList.java: -------------------------------------------------------------------------------- 1 | package jsonList; 2 | 3 | import java.util.List; 4 | 5 | public class JsonList { 6 | private List numbers; 7 | 8 | public List getNumbers() { 9 | return numbers; 10 | } 11 | 12 | public void setNumbers(List numbers) { 13 | this.numbers = numbers; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /jdbc-template/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jdbc-template/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jdbc-template/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jdbc-template/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /jdbc-template/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /jdbc-template/src/test/java/hello/dao/impl/with_config_scan/EmployeeDaoImplTestConfig.java: -------------------------------------------------------------------------------- 1 | package hello.dao.impl.with_config_scan; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("hello") 8 | public class EmployeeDaoImplTestConfig { 9 | } 10 | -------------------------------------------------------------------------------- /jpa-element-collection/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-element-collection/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-element-collection/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-element-collection/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-element-collection/src/main/java/hello/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.User; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface UserRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /jpa-embeddable/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-embeddable/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-embeddable/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-embeddable/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-flyway/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-flyway/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /jpa-flyway/.idea/sqldialects.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-flyway/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-flyway/src/main/resources/db/migration/V1__init.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE users ( 2 | id bigint(20) NOT NULL AUTO_INCREMENT, 3 | username varchar(100) NOT NULL, 4 | first_name varchar(50) NOT NULL, 5 | last_name varchar(50) DEFAULT NULL, 6 | PRIMARY KEY (id), 7 | UNIQUE KEY UK_username (username) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /jpa-flyway/src/main/resources/db/migration/V2__testdata.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO users(username, first_name, last_name) VALUES('callicoder', 'Rajeev', 'Singh'); 2 | INSERT INTO users(username, first_name, last_name) VALUES('flywaytest', 'Flyway', 'Test'); -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/src/main/java/hello/persistence/repositories/AuthorRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Author; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface AuthorRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/src/main/java/hello/persistence/repositories/BookRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Book; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface BookRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/liquibase?useSSL=false 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/src/test/java/hello/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package hello; 2 | 3 | import org.junit.Test; 4 | 5 | public class ApplicationTest extends AbstractIntegrationTest { 6 | 7 | @Test 8 | public void contextLoads() { } 9 | } 10 | -------------------------------------------------------------------------------- /jpa-liquibase/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /jpa-liquibase/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase/src/main/java/hello/persistence/repositories/AuthorRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Author; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface AuthorRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /jpa-liquibase/src/main/java/hello/persistence/repositories/BookRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Book; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface BookRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /jpa-liquibase/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/liquibase?useSSL=false 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /jpa-liquibase/src/test/java/hello/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package hello; 2 | 3 | import org.junit.Test; 4 | 5 | public class ApplicationTest extends AbstractIntegrationDBUnitTest { 6 | 7 | @Test 8 | public void contextLoads() { } 9 | } 10 | -------------------------------------------------------------------------------- /jpa-liquibase/src/test/resources/dbunit/books_authors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/src/main/java/hello/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/src/main/java/hello/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /jpa-one-to-one/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-one-to-one/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-one/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-one-to-one/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-one/src/main/java/hello/model/Gender.java: -------------------------------------------------------------------------------- 1 | package hello.model; 2 | 3 | public enum Gender { 4 | MALE, 5 | FEMALE 6 | } 7 | -------------------------------------------------------------------------------- /jpa-one-to-one/src/main/java/hello/repository/UserProfileRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.UserProfile; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface UserProfileRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /jpa-one-to-one/src/main/java/hello/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.User; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface UserRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /jpa-static-metamodel/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-static-metamodel/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-static-metamodel/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-static-metamodel/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/container/OrderType.java: -------------------------------------------------------------------------------- 1 | package hello.container; 2 | 3 | public enum OrderType { 4 | ASC, 5 | DESC 6 | } 7 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/dao/oneToMany/CommentDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Comment; 5 | 6 | import java.util.List; 7 | 8 | public interface CommentDao extends BaseDao { 9 | 10 | public List findByPostId(Long postId); 11 | } 12 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/dao/oneToMany/PostDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Post; 5 | 6 | public interface PostDao extends BaseDao { 7 | } 8 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/dao/single/EmployeeDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.single; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.single.Employee; 5 | 6 | import java.util.List; 7 | 8 | public interface EmployeeDao extends BaseDao { 9 | 10 | public List findByName(String name); 11 | } 12 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | } 9 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/util/StringUtil.java: -------------------------------------------------------------------------------- 1 | package hello.util; 2 | 3 | public final class StringUtil { 4 | 5 | public static boolean convertToBoolean(String str) { 6 | String trim = str.trim(); 7 | return !trim.equals("") && !trim.equals("0") && !trim.toLowerCase().equals("false"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logging-hibernate/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /logging-hibernate/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-hibernate/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logging-hibernate/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-hibernate/src/main/java/hello/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /logging-log4j/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logging-log4j/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j/log/.gitignore: -------------------------------------------------------------------------------- 1 | [^.]* 2 | -------------------------------------------------------------------------------- /logging-log4j/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /logging-log4j/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /logging-log4j/src/main/java/hello/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface EmployeeRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /logging-log4j/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /logging-log4j/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logging-log4j2/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j2/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logging-log4j2/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j2/log/.gitignore: -------------------------------------------------------------------------------- 1 | [^.]* 2 | -------------------------------------------------------------------------------- /logging-log4j2/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /logging-log4j2/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /logging-log4j2/src/main/java/hello/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface EmployeeRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /logging-log4j2/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /logging-log4j2/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logging/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logging/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /maven-multi-modules/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /maven-multi-modules/controller/src/main/java/controller/exception/EmployeeNotFoundException.java: -------------------------------------------------------------------------------- 1 | package controller.exception; 2 | 3 | public class EmployeeNotFoundException extends RuntimeException { 4 | 5 | public EmployeeNotFoundException(Long id) { 6 | super("Could not find employee " + id); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /maven-multi-modules/repository/src/main/java/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package repository; 2 | 3 | import model.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface EmployeeRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-aop/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-aop/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-aop/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-aop/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-aop/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | /** 4 | * @param Primary key 5 | */ 6 | public interface BaseEntity { 7 | 8 | ID getId(); 9 | 10 | void setId(ID id); 11 | } 12 | -------------------------------------------------------------------------------- /rest-aop/src/main/java/hello/exception/AccessDeniedException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class AccessDeniedException extends BaseException { 4 | 5 | private static final long serialVersionUID = 8178368916339356132L; 6 | 7 | public AccessDeniedException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /rest-aop/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-aop/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-aop/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-aop/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-aop/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-docs-api/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-docs-api/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs-api/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-docs-api/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/asciidoc/api.adoc: -------------------------------------------------------------------------------- 1 | == API 2 | 3 | === Employee 4 | include::employee.adoc[] 5 | 6 | === Post 7 | include::post.adoc[] 8 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/repository/oneToMany/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.oneToMany; 2 | 3 | import hello.entity.oneToMany.Post; 4 | import org.springframework.data.repository.CrudRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends CrudRepository { 9 | } 10 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Comment; 4 | 5 | public interface CommentService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/service/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Post; 4 | 5 | public interface PostService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /rest-docs-api/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs-api/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-docs-api/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-docs/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-docs/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs/src/test/resources/application.properties: -------------------------------------------------------------------------------- 1 | # for pretty json output - only for testing 2 | spring.jackson.serialization.indent_output=true 3 | -------------------------------------------------------------------------------- /rest-jpa-date-audit-entity/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-date-audit-entity/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-jpa-date-audit-entity/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/dto/ProductTypeDto.java: -------------------------------------------------------------------------------- 1 | package hello.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | import hello.entity.ProductType; 5 | 6 | /** 7 | * Ignore collection: Set products; 8 | */ 9 | @JsonIgnoreProperties("products") 10 | public class ProductTypeDto extends ProductType { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | Long getId(); 5 | void setId(Long id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/exception/ErrorCode.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public enum ErrorCode { 4 | 5 | OBJECT_NOT_FOUND(1), 6 | ; 7 | 8 | private final int code; 9 | 10 | private ErrorCode(int code){ 11 | this.code = code; 12 | } 13 | 14 | public int getValue(){ 15 | return code; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/exception/NotFoundException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotFoundException extends BaseException { 4 | 5 | private static final long serialVersionUID = 38816005992204401L; 6 | 7 | public NotFoundException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/facade/Facade.java: -------------------------------------------------------------------------------- 1 | package hello.facade; 2 | 3 | import hello.service.BaseService; 4 | 5 | /** 6 | * See changed Generics places 7 | * 8 | * @param 9 | * @param 10 | * @param 11 | */ 12 | public interface Facade extends BaseService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/repository/CompanyRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Company; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface CompanyRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/repository/ProductRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Product; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface ProductRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/repository/ProductTypeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.ProductType; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface ProductTypeRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/service/BaseService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import java.util.List; 4 | 5 | public interface BaseService { 6 | 7 | T getById(ID id); 8 | 9 | List getAll(); 10 | } 11 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/service/CompanyService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Company; 4 | 5 | public interface CompanyService extends BaseService { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/service/ProductService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Product; 4 | 5 | public interface ProductService extends BaseService { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/service/ProductTypeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.ProductType; 4 | 5 | public interface ProductTypeService extends BaseService { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/mapper?useSSL=false&serverTimezone=UTC 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | Long getId(); 5 | void setId(Long id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/entity/dto/ChairWithoutTableStaffDto.java: -------------------------------------------------------------------------------- 1 | package hello.entity.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | @JsonIgnoreProperties({"tableStaff"}) 6 | public class ChairWithoutTableStaffDto extends Chair { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/entity/dto/TableStaffWithoutChairDto.java: -------------------------------------------------------------------------------- 1 | package hello.entity.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | @JsonIgnoreProperties({"chairs"}) 6 | public class TableStaffWithoutChairDto extends TableStaff { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/dto/ChairRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.dto; 2 | 3 | import hello.entity.dto.Chair; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface ChairRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/dto/TableStaffRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.dto; 2 | 3 | import hello.entity.dto.TableStaff; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface TableStaffRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonIdentityInfo/CatalogRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonIdentityInfo; 2 | 3 | import hello.entity.jsonIdentityInfo.Catalog; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface CatalogRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonIdentityInfo/GoodRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonIdentityInfo; 2 | 3 | import hello.entity.jsonIdentityInfo.Good; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface GoodRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonReference/CommentRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonReference; 2 | 3 | import hello.entity.jsonReference.Comment; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface CommentRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonReference/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonReference; 2 | 3 | import hello.entity.jsonReference.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface PostRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonView/CompanyRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonView; 2 | 3 | import hello.entity.jsonView.Company; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface CompanyRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonView/ProductRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonView; 2 | 3 | import hello.entity.jsonView.Product; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface ProductRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/Service.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import java.util.List; 4 | 5 | public interface Service { 6 | 7 | T getById(ID id); 8 | 9 | List getAll(); 10 | } 11 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/dto/ChairService.java: -------------------------------------------------------------------------------- 1 | package hello.service.dto; 2 | 3 | import hello.entity.dto.Chair; 4 | import hello.service.Service; 5 | 6 | public interface ChairService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/dto/TableStaffService.java: -------------------------------------------------------------------------------- 1 | package hello.service.dto; 2 | 3 | import hello.entity.dto.TableStaff; 4 | import hello.service.Service; 5 | 6 | public interface TableStaffService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonIdentityInfo/CatalogService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonIdentityInfo; 2 | 3 | import hello.entity.jsonIdentityInfo.Catalog; 4 | import hello.service.Service; 5 | 6 | public interface CatalogService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonIdentityInfo/GoodService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonIdentityInfo; 2 | 3 | import hello.entity.jsonIdentityInfo.Good; 4 | import hello.service.Service; 5 | 6 | public interface GoodService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonReference/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonReference; 2 | 3 | import hello.entity.jsonReference.Comment; 4 | import hello.service.Service; 5 | 6 | public interface CommentService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonReference/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonReference; 2 | 3 | import hello.entity.jsonReference.Post; 4 | import hello.service.Service; 5 | 6 | public interface PostService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonView/CompanyService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonView; 2 | 3 | import hello.entity.jsonView.Company; 4 | import hello.service.Service; 5 | 6 | public interface CompanyService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonView/ProductService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonView; 2 | 3 | import hello.entity.jsonView.Product; 4 | import hello.service.Service; 5 | 6 | public interface ProductService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/CommonViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface CommonViews {} 4 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/CompanyAndCommonViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface CompanyAndCommonViews extends CompanyViews, CommonViews { 4 | } 5 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/CompanyViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface CompanyViews {} 4 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/ProductAndCommonViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface ProductAndCommonViews extends ProductViews, CommonViews { 4 | } 5 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/ProductViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface ProductViews {} 4 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/infinity?useSSL=false&serverTimezone=UTC 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/src/main/java/hello/service/customField/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service.customField; 2 | 3 | import hello.entity.customField.Employee; 4 | import hello.service.Service; 5 | 6 | public interface EmployeeService extends Service { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-jpa-update/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa-update/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-update/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-jpa-update/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-update/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | /** 4 | * @param Primary key 5 | */ 6 | public interface BaseEntity { 7 | 8 | ID getId(); 9 | 10 | void setId(ID id); 11 | 12 | String getName(); 13 | 14 | void setName(String name); 15 | } 16 | -------------------------------------------------------------------------------- /rest-jpa-update/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-jpa-update/src/main/java/hello/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface EmployeeRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /rest-jpa-update/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-update/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-jpa-validation/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa-validation/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-validation/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-jpa-validation/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-validation/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | Long getId(); 6 | 7 | void setId(Long id); 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-validation/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.beanValidation.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-validation/src/main/java/hello/service/PeopleService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.beanValidation.Employee; 4 | import hello.springValidation.People; 5 | 6 | public interface PeopleService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-validation/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-jpa/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-jpa/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | /** 4 | * @param Primary key 5 | */ 6 | public interface BaseEntity { 7 | 8 | ID getId(); 9 | 10 | void setId(ID id); 11 | 12 | String getName(); 13 | 14 | void setName(String name); 15 | } 16 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/repository/oneToMany/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.oneToMany; 2 | 3 | import hello.entity.oneToMany.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | } 10 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Comment; 4 | 5 | public interface CommentService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/service/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Post; 4 | 5 | public interface PostService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-jpa/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-static/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-static/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-static/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-static/src/main/java/examples/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package examples.service; 2 | 3 | import examples.model.Employee; 4 | 5 | import java.util.List; 6 | 7 | public interface EmployeeService { 8 | 9 | Employee getById(int id); 10 | 11 | List getAll(); 12 | 13 | int create(Employee employee); 14 | } 15 | -------------------------------------------------------------------------------- /rest-template/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-template/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-template/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-template/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-template/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | /** 4 | * @param Primary key 5 | */ 6 | public interface BaseEntity { 7 | 8 | ID getId(); 9 | 10 | void setId(ID id); 11 | 12 | String getName(); 13 | 14 | void setName(String name); 15 | } 16 | -------------------------------------------------------------------------------- /rest-template/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-template/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-template/src/main/java/hello/service/UserService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.User; 4 | 5 | import java.util.List; 6 | 7 | public interface UserService { 8 | 9 | List getAll(); 10 | 11 | User getById(Long id); 12 | } 13 | -------------------------------------------------------------------------------- /rest-template/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-template/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-template/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /routes/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /routes/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /routes/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /routes/src/main/java/examples/controller/extend/CompanyController.java: -------------------------------------------------------------------------------- 1 | package examples.controller.extend; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | @RequestMapping("/companies") 8 | public class CompanyController extends AbstractApiController { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /routes/src/main/resources/templates/post.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting Started: Serving Web Content 5 | 6 | 7 | 8 |

Display post content

9 | 10 | -------------------------------------------------------------------------------- /routes/src/main/resources/templates/simple-get.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting Started: Serving Web Content 5 | 6 | 7 | 8 |

simple get - not params - @GetMapping("/simple-get")

9 | 10 | -------------------------------------------------------------------------------- /scheduler-example/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /scheduler-example/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /scheduler-example/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc-remember-me/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc-remember-me/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /security-jdbc-remember-me/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc-remember-me/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost:3306/testdb?verifyServerCertificate=false&useSSL=false 2 | spring.datasource.username=root 3 | spring.datasource.password=root -------------------------------------------------------------------------------- /security-jdbc/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /security-jdbc/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost:3306/testdb?verifyServerCertificate=false&useSSL=false 2 | spring.datasource.username=root 3 | spring.datasource.password=root -------------------------------------------------------------------------------- /security-memory-http-basic-api/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /security-memory-http-basic-api/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-http-basic-api/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /security-memory-http-basic-api/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-http-basic-api/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/company?useSSL=false&serverTimezone=UTC 2 | username=root 3 | password=root 4 | change-log=classpath:db/liquibase-changelog.xml -------------------------------------------------------------------------------- /security-memory-http-basic/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-http-basic/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /security-memory-http-basic/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-login-form/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-login-form/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /security-memory-login-form/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-oauth2-memory-authorization-server-15/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-oauth2-memory-authorization-server-15/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-oauth2-memory-authorization-server-15/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # set order for correct work for ResourceServer 2 | security.oauth2.resource.filter-order=3 -------------------------------------------------------------------------------- /test-datajpatest/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-datajpatest/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-datajpatest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-datajpatest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-datajpatest/src/main/java/hello/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /test-dbunit-testcontainer/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/src/test/resources/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/src/test/resources/global-data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test-dbunit/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-dbunit/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test-dbunit/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-dbunit/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-dbunit/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /test-dbunit/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /test-dbunit/src/test/resources/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-dbunit/src/test/resources/global-data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test-jpa-liquibase/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-jpa-liquibase/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-jpa-liquibase/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-jpa-liquibase/src/main/java/hello/persistence/repositories/AuthorRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Author; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface AuthorRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /test-jpa-liquibase/src/main/java/hello/persistence/repositories/BookRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Book; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface BookRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /test-jpa-liquibase/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/liquibase?useSSL=false 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /test-mvc/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-mvc/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-mvc/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-mvc/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/repository/oneToMany/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.oneToMany; 2 | 3 | import hello.entity.oneToMany.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | } 10 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Comment; 4 | 5 | public interface CommentService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/service/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Post; 4 | 5 | public interface PostService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-mvc/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-mvc/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-mvc/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-rest-jpa/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-rest-jpa/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-rest-jpa/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-rest-jpa/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-rest-jpa/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /test-rest-jpa/src/main/java/hello/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Comment; 4 | 5 | public interface CommentService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-rest-jpa/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /test-rest-jpa/src/main/java/hello/service/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Post; 4 | 5 | public interface PostService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-rest-jpa/src/test/java/hello/mock_mvc/controller/spring_runner/ConfigTest.java: -------------------------------------------------------------------------------- 1 | package hello.mock_mvc.controller.spring_runner; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("hello") 8 | public class ConfigTest { 9 | } 10 | -------------------------------------------------------------------------------- /test-rest-jpa/src/test/resources/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/company?useSSL=false&serverTimezone=UTC 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /test-security-memory-login-form/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-security-memory-login-form/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-security-memory-login-form/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spock/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spock/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-spock/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spock/log/.gitignore: -------------------------------------------------------------------------------- 1 | [^.]* 2 | -------------------------------------------------------------------------------- /test-spock/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /test-spock/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /test-spock/src/main/java/hello/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface EmployeeRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /test-spock/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-spock/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-spring-async-synctaskexecutor/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring-async-synctaskexecutor/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring-async-synctaskexecutor/src/test/java/examples/ClassTestConfig.java: -------------------------------------------------------------------------------- 1 | package examples; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("examples") 8 | public class ClassTestConfig { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /test-spring-with-profile/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring-with-profile/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-spring-with-profile/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring-with-profile/src/main/java/net/lkrnac/blog/testing/mockbeanv2/beans/AddressDao.java: -------------------------------------------------------------------------------- 1 | package net.lkrnac.blog.testing.mockbeanv2.beans; 2 | 3 | import org.springframework.stereotype.Repository; 4 | 5 | @Repository 6 | public class AddressDao { 7 | public String readAddress(String userName) { 8 | return "3 Dark Corner"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /test-spring/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-spring/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /test-spring/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /test-spring/src/test/java/commonconfig/CommonConfig.java: -------------------------------------------------------------------------------- 1 | package commonconfig; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("hello.simplelogic") 8 | public class CommonConfig { 9 | } 10 | -------------------------------------------------------------------------------- /test-springboottest/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-springboottest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-springboottest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-springboottest/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /test-springboottest/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /transaction-declarative-aspectj/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-declarative-aspectj/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /transaction-declarative-aspectj/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /transaction-declarative/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /transaction-declarative/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /transaction-declarative/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-declarative/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /transaction-declarative/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /transaction-programmatic/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /transaction-programmatic/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /transaction-programmatic/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-programmatic/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /transaction-programmatic/readme.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | 3 | 1. create database see db.sql 4 | 2. cp src/main/resources/application.properties.dist src/main/resources/application.properties 5 | 3. set db config in application.properties -------------------------------------------------------------------------------- /transaction-programmatic/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /transactional-pitfalls/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /transactional-pitfalls/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /transactional-pitfalls/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transactional-pitfalls/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /transactional-pitfalls/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /web-flux-and-mono/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /web-flux-and-mono/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /web-flux-and-mono/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /web-flux-and-mono/readme.md: -------------------------------------------------------------------------------- 1 | # Project for understand Flux and Mono 2 | -------------------------------------------------------------------------------- /web-flux-and-mono/src/main/resources/application.properties.dest: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /web-flux-rest-simple/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /web-flux-rest-simple/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /web-flux-rest-simple/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /web-flux-rest-simple/readme.md: -------------------------------------------------------------------------------- 1 | # Building a Reactive RESTful Web Service 2 | 3 | https://spring.io/guides/gs/reactive-rest-service/ -------------------------------------------------------------------------------- /web-flux-rest-simple/src/main/resources/application.properties.dest: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /web-flux-rest-simple/src/test/java/com/example/demo/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.demo; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class DemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /websocket-simple/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /workspace.xml -------------------------------------------------------------------------------- /websocket-simple/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /websocket-simple/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /websocket-simple/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | --------------------------------------------------------------------------------