├── .github └── workflows │ ├── ant.yml │ ├── gradle-publish.yml │ ├── maven.yml │ ├── maven_v1.yml │ └── static.yml ├── .idea ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml ├── modules.xml ├── spring-boot-tutorial-master.iml ├── vcs.xml └── workspace.xml ├── Project-4.SpringBoot-AWS-S3 └── backend │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── urunov │ │ │ ├── Awss3Application.java │ │ │ ├── config │ │ │ └── AmazonConfig.java │ │ │ ├── datastore │ │ │ └── FakeUserProfileDataStore.java │ │ │ ├── fileStore │ │ │ └── FileStore.java │ │ │ └── profile │ │ │ ├── UserProfile.java │ │ │ ├── UserProfileController.java │ │ │ ├── UserProfileDataAccessService.java │ │ │ └── UserProfileService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── urunov │ └── Awss3ApplicationTests.java ├── README.md ├── Registration-FullStack-Springboot ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── pagination │ │ │ └── sort │ │ │ ├── SortApplication.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ ├── repository │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ ├── EmployeeService.java │ │ │ └── EmployeeServiceImpl.java │ └── resources │ │ ├── application.properties │ │ └── templates │ │ ├── index.html │ │ ├── new_employee.html │ │ └── update_employee.html │ └── test │ └── java │ └── pagination │ └── sort │ └── SortApplicationTests.java ├── Spring Boot Configuration ├── SpringBootConfSource │ └── SpringXML │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── spring │ │ │ │ └── config │ │ │ │ ├── ConfigApplication.java │ │ │ │ ├── model │ │ │ │ └── Message.java │ │ │ │ └── service │ │ │ │ ├── EmailService.java │ │ │ │ ├── MessageProcessImpl.java │ │ │ │ ├── MessageProcessor.java │ │ │ │ ├── MessageService.java │ │ │ │ ├── SMSService.java │ │ │ │ └── TwitterService.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── applicationContext.xml │ │ └── test │ │ └── java │ │ └── spring │ │ └── config │ │ └── ConfigApplicationTests.java └── SringXMLConfig │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── configure │ │ │ ├── ConfigureApplication.java │ │ │ ├── model │ │ │ └── Message.java │ │ │ └── service │ │ │ ├── EmailService.java │ │ │ ├── MessageProcessor.java │ │ │ ├── MessageProcessorImpl.java │ │ │ ├── MessageService.java │ │ │ ├── SmsService.java │ │ │ └── TwitterService.java │ └── resources │ │ ├── application.properties │ │ └── applicationContext.xml │ └── test │ └── java │ └── spring │ └── configure │ └── ConfigureApplicationTests.java ├── SpringBoot-Autowire-Qualifier ├── mvnw ├── mvnw.cmd ├── pom.xml ├── springbootcore.jpg └── src │ ├── main │ ├── java │ │ ├── Architecure.jpg │ │ ├── ReadMeStrucute.txt │ │ └── com │ │ │ └── project │ │ │ └── spring │ │ │ ├── Alien.java │ │ │ ├── Application.java │ │ │ ├── Laptop.java │ │ │ └── configuration │ │ │ ├── AppConfiguration.java │ │ │ └── Computer.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── project │ └── spring │ └── ApplicationTests.java ├── SpringBoot-GitApi-CodeChecking ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── urunov │ │ │ └── pairing │ │ │ ├── PairingApplication.java │ │ │ ├── controller │ │ │ └── AccessController.java │ │ │ ├── data │ │ │ ├── GitCommit.java │ │ │ └── GitNamespace.java │ │ │ ├── events │ │ │ └── GitlabAPIService.java │ │ │ └── repository │ │ │ ├── GitCommitRepo.java │ │ │ └── GitNamespaceRepo.java │ └── resources │ │ ├── activecode │ │ └── application.properties │ └── test │ └── java │ └── com │ └── urunov │ └── pairing │ └── PairingApplicationTests.java ├── SpringBoot-MongoDB-NoSQL-CRUD ├── README.md ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── urunov │ │ │ └── mongodb │ │ │ ├── MongodbApplication.java │ │ │ ├── configSwag │ │ │ └── SwaggerConfig.java │ │ │ ├── controller │ │ │ ├── EmployeeController.java │ │ │ └── ProjectController.java │ │ │ ├── exception │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ ├── DatabaseSequence.java │ │ │ ├── Employees.java │ │ │ └── Projects.java │ │ │ ├── repository │ │ │ ├── MongoDB.java │ │ │ └── ProjectsDB.java │ │ │ └── service │ │ │ └── SequenceGeneratorService.java │ └── resources │ │ ├── application.properties │ │ └── schema.script │ └── test │ └── java │ └── com │ └── urunov │ └── mongodb │ └── MongodbApplicationTests.java ├── SpringBoot-Swagger2-Enabling ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── swagger │ │ │ ├── SwaggerAPIController.java │ │ │ ├── SwaggerApplication.java │ │ │ └── SwaggerConfig.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── spring │ └── swagger │ └── SwaggerApplicationTests.java ├── SpringBoot-Todo-Project ├── Screen Shot 2020-04-30 at 11.58.22 AM.png ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── project │ │ │ ├── ProjectApplication.java │ │ │ ├── controller │ │ │ └── ToDoController.java │ │ │ ├── entity │ │ │ └── ToDo.java │ │ │ └── repository │ │ │ └── ToDoRepository.java │ └── resources │ │ ├── application.properties │ │ └── templates │ │ ├── index.html │ │ ├── logout.html │ │ └── todos.html │ └── test │ └── java │ └── spring │ └── project │ └── ProjectApplicationTests.java ├── Springboot integrated with JSP ├── SpringJSPSimple │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── demo │ │ │ │ ├── Controllers.java │ │ │ │ ├── DemoApplication.java │ │ │ │ └── WebMvcConfiguration.java │ │ ├── resources │ │ │ └── application.properties │ │ └── webapp │ │ │ └── WEB-INF │ │ │ └── view │ │ │ ├── index.jsp │ │ │ └── next.jsp │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── demo │ │ └── DemoApplicationTests.java └── SpringJSPUpdate │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── jsp │ │ │ ├── ApplicationInitializer.java │ │ │ ├── BeanConfigu.java │ │ │ ├── DashboardController.java │ │ │ ├── JspApplication.java │ │ │ ├── User.java │ │ │ └── WebConfig.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── WEB-INF │ │ └── view │ │ ├── dashboard.jsp │ │ └── welcome.jsp │ └── test │ └── java │ └── spring │ └── jsp │ └── JspApplicationTests.java ├── Springboot-ActiveMQ-Sample ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── urunov │ │ │ └── activemq │ │ │ ├── ActivemqApplication.java │ │ │ └── jms │ │ │ ├── Receiver.java │ │ │ ├── ReceiverConfig.java │ │ │ ├── Sender.java │ │ │ └── SenderConfigure.java │ └── resources │ │ ├── application.properties │ │ └── application.yml │ └── test │ └── java │ └── com │ └── urunov │ └── activemq │ └── ActivemqApplicationTests.java ├── Springboot-Annotation-BootApplication ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── annotation │ │ │ ├── AnnotationApplication.java │ │ │ └── MyConfig.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── spring │ └── annotation │ └── AnnotationApplicationTests.java ├── Springboot-Annotation-LookService ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── annotation │ │ │ ├── AnnotationApplication.java │ │ │ ├── model │ │ │ ├── Developer.java │ │ │ └── User.java │ │ │ └── service │ │ │ └── GitHubLookupService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── spring │ └── annotation │ └── AnnotationApplicationTests.java ├── Springboot-Employee-Salary ├── EmployeeSalary.JPG ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── project │ │ │ ├── ProApplication.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── dao │ │ │ └── EmployeeDB.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── service │ │ │ └── EmployeeService.java │ └── resources │ │ ├── application.properties │ │ └── templates │ │ ├── edit_employee.html │ │ ├── index.html │ │ └── new_employee.html │ └── test │ └── java │ └── spring │ └── project │ └── ProApplicationTests.java ├── Springboot-Employee-Search ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ ├── WebContent │ │ │ ├── META-INF │ │ │ │ └── MANIFEST.MF │ │ │ └── WEB-INF │ │ │ │ └── views │ │ │ │ ├── edit_customer.jsp │ │ │ │ ├── index.jsp │ │ │ │ ├── new_customer.jsp │ │ │ │ └── search.jsp │ │ └── spring │ │ │ └── project │ │ │ ├── ProjectApplication.java │ │ │ ├── config.java │ │ │ ├── configure │ │ │ ├── Employee.java │ │ │ ├── EmployeeController.java │ │ │ ├── JpaConfig.java │ │ │ ├── WebAppInitializer.java │ │ │ └── WebMvcConfig.java │ │ │ ├── repository │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ └── EmployeeService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── spring │ └── project │ └── ProjectApplicationTests.java ├── Springboot-Jersey-JPA ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── database │ │ │ ├── DatabaseApplication.java │ │ │ ├── config │ │ │ └── JerseyConfiguration.java │ │ │ ├── controller │ │ │ └── JobResource.java │ │ │ ├── exception │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Job.java │ │ │ └── repository │ │ │ └── JobRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── spring │ └── database │ └── DatabaseApplicationTests.java ├── Springboot-Multiple-DataStructure ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── mvc │ │ │ ├── MvcApplication.java │ │ │ ├── config │ │ │ ├── OrderDataSourceConfig.java │ │ │ ├── SecurityDataSoruceConfig.java │ │ │ └── WebMvcConfig.java │ │ │ ├── controller │ │ │ └── HomeController.java │ │ │ ├── orders │ │ │ ├── entities │ │ │ │ ├── Order.java │ │ │ │ └── OrderItem.java │ │ │ └── repository │ │ │ │ └── OrderRepository.java │ │ │ ├── security │ │ │ ├── entity │ │ │ │ ├── Address.java │ │ │ │ └── User.java │ │ │ └── repository │ │ │ │ └── UserRepository.java │ │ │ └── service │ │ │ └── entity │ │ │ └── UserOrdersService.java │ └── resources │ │ ├── application.properties │ │ ├── data.sql │ │ ├── orders-data.sql │ │ └── templates │ │ └── users.html │ └── test │ └── java │ └── spring │ └── mvc │ └── MvcApplicationTests.java ├── Springboot-Registration-Page ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── aspera │ │ │ └── registration │ │ │ ├── RegistrationApplication.java │ │ │ ├── config │ │ │ └── SecurityConfiguration.java │ │ │ ├── constarint │ │ │ ├── FieldMatch.java │ │ │ └── FieldMatchValidator.java │ │ │ ├── model │ │ │ ├── Role.java │ │ │ └── User.java │ │ │ ├── repository │ │ │ └── UserRepository.java │ │ │ ├── service │ │ │ ├── UserService.java │ │ │ └── UserServiceImpl.java │ │ │ └── web │ │ │ ├── MainController.java │ │ │ ├── UserRegistrationController.java │ │ │ └── dto │ │ │ └── UserRegistrationDto.java │ └── resources │ │ ├── application.properties │ │ └── templates │ │ ├── index.html │ │ ├── login.html │ │ └── registration.html │ └── test │ └── java │ └── aspera │ └── registration │ └── RegistrationApplicationTests.java ├── Springboot-Registration-Project ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── security │ │ │ ├── SecurityApplication.java │ │ │ ├── config │ │ │ └── SecurityConfiguration.java │ │ │ ├── constraint │ │ │ ├── FieldMatch.java │ │ │ └── FieldMatchValidator.java │ │ │ ├── model │ │ │ ├── Role.java │ │ │ └── User.java │ │ │ ├── repisitory │ │ │ ├── UserRegistrationDto.java │ │ │ └── UserRepository.java │ │ │ ├── security │ │ │ └── SecurityConfiguration.java │ │ │ ├── service │ │ │ ├── UserService.java │ │ │ └── UserServiceImpl.java │ │ │ └── web │ │ │ ├── MainController.java │ │ │ └── UserRegistrationController.java │ └── resources │ │ ├── application.properties │ │ └── templates │ │ ├── index.html │ │ ├── login.html │ │ └── registration.html │ └── test │ └── java │ └── spring │ └── security │ └── SecurityApplicationTests.java ├── Springboot-SLF4J-project ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── database │ │ │ ├── Article.java │ │ │ ├── ArticleController.java │ │ │ ├── ArticleService.java │ │ │ └── DatabaseApplication.java │ └── resources │ │ ├── application.properties │ │ └── logback.xml │ └── test │ └── java │ └── spring │ └── database │ └── DatabaseApplicationTests.java ├── Springboot-Security-Project ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── spring │ │ │ └── security │ │ │ ├── SecurityApplication.java │ │ │ ├── config │ │ │ └── SpringSecurityConfig.java │ │ │ ├── controller │ │ │ └── DefaultController.java │ │ │ └── error │ │ │ └── MyAccessDeniedHandler.java │ └── resources │ │ ├── application.properties │ │ ├── static │ │ └── css │ │ │ └── main.css │ │ └── templates │ │ ├── about.html │ │ ├── admin.html │ │ ├── error │ │ └── 403.html │ │ ├── fragments │ │ ├── footer.html │ │ └── header.html │ │ ├── home.html │ │ ├── login.html │ │ └── user.html │ └── test │ └── java │ └── spring │ └── security │ └── SecurityApplicationTests.java ├── Springboot-ShoppingCard └── fullstack │ └── backend │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── urunov │ │ │ ├── CardApplication.java │ │ │ ├── constants │ │ │ ├── GeneralConstants.java │ │ │ └── PusherConstants.java │ │ │ ├── controller │ │ │ └── web │ │ │ │ ├── CartController.java │ │ │ │ ├── IndexController.java │ │ │ │ └── vo │ │ │ │ └── ItemRequest.java │ │ │ └── model │ │ │ └── Product.java │ └── resources │ │ ├── application.properties │ │ ├── static │ │ ├── css │ │ │ └── style.css │ │ ├── images │ │ │ └── pusher-logo.png │ │ └── js │ │ │ ├── app.js │ │ │ └── components │ │ │ ├── cart.js │ │ │ ├── cartItem.js │ │ │ ├── header.js │ │ │ ├── product.js │ │ │ └── productList.js │ │ └── templates │ │ └── index.html │ └── test │ └── java │ └── com │ └── urunov │ └── CardApplicationTests.java ├── login-registration-springboot-hibernate-jsp-auth ├── .classpath ├── .idea │ ├── .gitignore │ ├── codeStyles │ │ ├── Project.xml │ │ └── codeStyleConfig.xml │ ├── misc.xml │ ├── modules.xml │ └── vcs.xml ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ ├── org.eclipse.wst.jsdt.ui.superType.name │ ├── org.eclipse.wst.validation.prefs │ └── org.springframework.ide.eclipse.prefs ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── alanbinu │ │ └── springboot │ │ └── loginregistrationspringbootauthjsp │ │ ├── Application.java │ │ ├── config │ │ └── WebSecurityConfig.java │ │ ├── model │ │ ├── Role.java │ │ └── User.java │ │ ├── repository │ │ ├── RoleRepository.java │ │ └── UserRepository.java │ │ ├── service │ │ ├── UserDetailsServiceImpl.java │ │ ├── UserService.java │ │ └── UserServiceImpl.java │ │ ├── validator │ │ └── UserValidator.java │ │ └── web │ │ └── UserController.java │ ├── resources │ ├── application.properties │ └── validation.properties │ └── webapp │ ├── WEB-INF │ ├── jsp │ │ ├── login.jsp │ │ ├── registration.jsp │ │ └── welcome.jsp │ └── web.xml │ ├── index.jsp │ └── resources │ ├── css │ ├── bootstrap.min.css │ └── common.css │ └── js │ └── bootstrap.min.js ├── spring covid-19 ├── .classpath ├── .idea │ ├── compiler.xml │ ├── encodings.xml │ ├── libraries │ │ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml │ │ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml │ │ ├── Maven__com_fasterxml_classmate_1_5_1.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_2.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_10_2.xml │ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_10_2.xml │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_2.xml │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_2.xml │ │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_2.xml │ │ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml │ │ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml │ │ ├── Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml │ │ ├── Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml │ │ ├── Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml │ │ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml │ │ ├── Maven__net_bytebuddy_byte_buddy_1_10_8.xml │ │ ├── Maven__net_bytebuddy_byte_buddy_agent_1_10_8.xml │ │ ├── Maven__net_minidev_accessors_smart_1_2.xml │ │ ├── Maven__net_minidev_json_smart_2_3.xml │ │ ├── Maven__org_apache_commons_commons_csv_1_8.xml │ │ ├── Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml │ │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_31.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_31.xml │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_31.xml │ │ ├── Maven__org_apiguardian_apiguardian_api_1_1_0.xml │ │ ├── Maven__org_assertj_assertj_core_3_13_2.xml │ │ ├── Maven__org_attoparser_attoparser_2_0_5_RELEASE.xml │ │ ├── Maven__org_hamcrest_hamcrest_2_1.xml │ │ ├── Maven__org_hibernate_validator_hibernate_validator_6_0_18_Final.xml │ │ ├── Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml │ │ ├── Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml │ │ ├── Maven__org_junit_platform_junit_platform_commons_1_5_2.xml │ │ ├── Maven__org_junit_platform_junit_platform_engine_1_5_2.xml │ │ ├── Maven__org_mockito_mockito_core_3_1_0.xml │ │ ├── Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml │ │ ├── Maven__org_objenesis_objenesis_2_6.xml │ │ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml │ │ ├── Maven__org_ow2_asm_asm_5_0_4.xml │ │ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml │ │ ├── Maven__org_slf4j_jul_to_slf4j_1_7_30.xml │ │ ├── Maven__org_slf4j_slf4j_api_1_7_30.xml │ │ ├── Maven__org_springframework_boot_spring_boot_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_devtools_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_validation_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_test_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_5_RELEASE.xml │ │ ├── Maven__org_springframework_spring_aop_5_2_4_RELEASE.xml │ │ ├── Maven__org_springframework_spring_beans_5_2_4_RELEASE.xml │ │ ├── Maven__org_springframework_spring_context_5_2_4_RELEASE.xml │ │ ├── Maven__org_springframework_spring_core_5_2_4_RELEASE.xml │ │ ├── Maven__org_springframework_spring_expression_5_2_4_RELEASE.xml │ │ ├── Maven__org_springframework_spring_jcl_5_2_4_RELEASE.xml │ │ ├── Maven__org_springframework_spring_test_5_2_4_RELEASE.xml │ │ ├── Maven__org_springframework_spring_web_5_2_4_RELEASE.xml │ │ ├── Maven__org_springframework_spring_webmvc_5_2_4_RELEASE.xml │ │ ├── Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_4_RELEASE.xml │ │ ├── Maven__org_thymeleaf_thymeleaf_3_0_11_RELEASE.xml │ │ ├── Maven__org_thymeleaf_thymeleaf_spring5_3_0_11_RELEASE.xml │ │ ├── Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml │ │ ├── Maven__org_xmlunit_xmlunit_core_2_6_3.xml │ │ └── Maven__org_yaml_snakeyaml_1_25.xml │ ├── misc.xml │ ├── modules.xml │ └── workspace.xml ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ └── maven-wrapper.properties ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.springframework.ide.eclipse.prefs ├── HELP.md ├── README.md ├── bin │ ├── .gitattributes │ ├── .gitignore │ ├── .idea │ │ ├── compiler.xml │ │ ├── encodings.xml │ │ ├── libraries │ │ │ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml │ │ │ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml │ │ │ ├── Maven__com_fasterxml_classmate_1_5_1.xml │ │ │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_2.xml │ │ │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_10_2.xml │ │ │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_10_2.xml │ │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_2.xml │ │ │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_2.xml │ │ │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_2.xml │ │ │ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml │ │ │ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml │ │ │ ├── Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml │ │ │ ├── Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml │ │ │ ├── Maven__jakarta_validation_jakarta_validation_api_2_0_2.xml │ │ │ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml │ │ │ ├── Maven__net_bytebuddy_byte_buddy_1_10_8.xml │ │ │ ├── Maven__net_bytebuddy_byte_buddy_agent_1_10_8.xml │ │ │ ├── Maven__net_minidev_accessors_smart_1_2.xml │ │ │ ├── Maven__net_minidev_json_smart_2_3.xml │ │ │ ├── Maven__org_apache_commons_commons_csv_1_8.xml │ │ │ ├── Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml │ │ │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml │ │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_31.xml │ │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_9_0_31.xml │ │ │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_31.xml │ │ │ ├── Maven__org_apiguardian_apiguardian_api_1_1_0.xml │ │ │ ├── Maven__org_assertj_assertj_core_3_13_2.xml │ │ │ ├── Maven__org_attoparser_attoparser_2_0_5_RELEASE.xml │ │ │ ├── Maven__org_hamcrest_hamcrest_2_1.xml │ │ │ ├── Maven__org_hibernate_validator_hibernate_validator_6_0_18_Final.xml │ │ │ ├── Maven__org_jboss_logging_jboss_logging_3_4_1_Final.xml │ │ │ ├── Maven__org_junit_jupiter_junit_jupiter_5_5_2.xml │ │ │ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_5_2.xml │ │ │ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_5_2.xml │ │ │ ├── Maven__org_junit_jupiter_junit_jupiter_params_5_5_2.xml │ │ │ ├── Maven__org_junit_platform_junit_platform_commons_1_5_2.xml │ │ │ ├── Maven__org_junit_platform_junit_platform_engine_1_5_2.xml │ │ │ ├── Maven__org_mockito_mockito_core_3_1_0.xml │ │ │ ├── Maven__org_mockito_mockito_junit_jupiter_3_1_0.xml │ │ │ ├── Maven__org_objenesis_objenesis_2_6.xml │ │ │ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml │ │ │ ├── Maven__org_ow2_asm_asm_5_0_4.xml │ │ │ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml │ │ │ ├── Maven__org_slf4j_jul_to_slf4j_1_7_30.xml │ │ │ ├── Maven__org_slf4j_slf4j_api_1_7_30.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_devtools_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_starter_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_starter_thymeleaf_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_starter_validation_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_test_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_2_5_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_aop_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_beans_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_context_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_core_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_expression_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_jcl_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_test_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_web_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_springframework_spring_webmvc_5_2_4_RELEASE.xml │ │ │ ├── Maven__org_thymeleaf_extras_thymeleaf_extras_java8time_3_0_4_RELEASE.xml │ │ │ ├── Maven__org_thymeleaf_thymeleaf_3_0_11_RELEASE.xml │ │ │ ├── Maven__org_thymeleaf_thymeleaf_spring5_3_0_11_RELEASE.xml │ │ │ ├── Maven__org_unbescape_unbescape_1_1_6_RELEASE.xml │ │ │ ├── Maven__org_xmlunit_xmlunit_core_2_6_3.xml │ │ │ └── Maven__org_yaml_snakeyaml_1_25.xml │ │ ├── misc.xml │ │ ├── modules.xml │ │ └── workspace.xml │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.class │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ └── org.eclipse.core.resources.prefs │ ├── HELP.md │ ├── coronavirus-tracker.iml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── io │ │ │ │ └── javabrains │ │ │ │ └── coronavirustracker │ │ │ │ ├── CoronavirusTrackerApplication.class │ │ │ │ ├── controllers │ │ │ │ └── HomeController.class │ │ │ │ ├── models │ │ │ │ └── LocationStats.class │ │ │ │ └── services │ │ │ │ └── CoronaVirusDataService.class │ │ └── resources │ │ │ ├── application.properties │ │ │ └── templates │ │ │ └── home.html │ │ └── test │ │ └── java │ │ └── io │ │ └── javabrains │ │ └── coronavirustracker │ │ └── CoronavirusTrackerApplicationTests.class ├── coronavirus-tracker.iml ├── mvnw ├── mvnw.cmd ├── pom.xml ├── src │ ├── main │ │ ├── java │ │ │ └── io │ │ │ │ └── alanbinu │ │ │ │ └── coronavirustracker │ │ │ │ ├── CoronavirusTrackerApplication.java │ │ │ │ ├── controllers │ │ │ │ └── HomeController.java │ │ │ │ ├── models │ │ │ │ └── LocationStats.java │ │ │ │ └── services │ │ │ │ └── CoronaVirusDataService.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── templates │ │ │ └── home.html │ └── test │ │ └── java │ │ └── io │ │ └── alanbinu │ │ └── coronavirustracker │ │ └── CoronavirusTrackerApplicationTests.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── io.javabrains │ │ │ └── coronavirus-tracker │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── application.properties │ ├── io │ │ └── javabrains │ │ │ └── coronavirustracker │ │ │ ├── CoronavirusTrackerApplication.class │ │ │ ├── controllers │ │ │ └── HomeController.class │ │ │ ├── models │ │ │ └── LocationStats.class │ │ │ └── services │ │ │ └── CoronaVirusDataService.class │ └── templates │ │ └── home.html │ └── test-classes │ └── io │ └── javabrains │ └── coronavirustracker │ └── CoronavirusTrackerApplicationTests.class ├── spring-aop-advice-examples ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2jpacrudexample │ │ │ ├── Application.java │ │ │ ├── SpringRestClient.java │ │ │ ├── aspect │ │ │ └── LoggingAspect.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── exception │ │ │ ├── ErrorDetails.java │ │ │ ├── GlobalExceptionHandler.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ ├── repository │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ └── EmployeeService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpacrudexample │ └── ApplicationTests.java ├── spring-boot jpa-with-hibernate-and-h2 ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ └── jpa │ │ │ └── hibernate │ │ │ └── h2 │ │ │ └── example │ │ │ ├── SpringBoot2JPAWithHibernateAndH2Application.java │ │ │ └── student │ │ │ ├── Student.java │ │ │ └── StudentRepository.java │ └── resources │ │ ├── application.properties │ │ └── data.sql │ └── test │ └── java │ └── com │ └── alanbinu │ └── springboot │ └── jpa │ └── hibernate │ └── h2 │ └── example │ └── SpringBoot2JPAWithHibernateAndH2ApplicationTests.java ├── spring-boot-2-jdbc-with-h2 ├── .gitignore ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ └── jdbc │ │ │ └── h2 │ │ │ └── example │ │ │ ├── SpringBoot2JdbcWithH2Application.java │ │ │ └── student │ │ │ ├── Student.java │ │ │ └── StudentJdbcRepository.java │ └── resources │ │ ├── application.properties │ │ ├── data.sql │ │ └── schema.sql │ └── test │ └── java │ └── com │ └── alanbinu │ └── springboot │ └── jdbc │ └── h2 │ └── example │ └── SpringBoot2JdbcWithH2ApplicationTests.java ├── spring-boot-2-jpa-spring-data-rest ├── .gitignore ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ └── jpa │ │ │ └── spring │ │ │ └── data │ │ │ └── rest │ │ │ └── example │ │ │ ├── SpringBoot2JPAWithSpringDataRestApplication.java │ │ │ └── student │ │ │ ├── Student.java │ │ │ └── StudentDataRestRepository.java │ └── resources │ │ ├── application.properties │ │ └── data.sql │ └── test │ └── java │ └── com │ └── alanbinu │ └── springboot │ └── jpa │ └── spring │ └── data │ └── rest │ └── example │ └── SpringBoot2JPAWithSpringDataRestApplicationTests.java ├── spring-boot-crud-rest ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── api-documents ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── alanbinu │ │ │ └── springbootcrudrest │ │ │ ├── SpringBootCrudRestApplication.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── exception │ │ │ ├── ErrorDetails.java │ │ │ ├── GlobalExceptionHandler.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── User.java │ │ │ └── repository │ │ │ └── UserRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── alanbinu │ └── projectname │ └── springbootcrudrest │ └── SpringBootCrudRestApplicationTests.java ├── spring-cloud-loadbalance ├── chatbook │ ├── chatbook.iml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── alanbinu │ │ │ │ │ └── spring │ │ │ │ │ └── load │ │ │ │ │ └── balance │ │ │ │ │ └── api │ │ │ │ │ └── ChatbookApplication.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── alanbinu │ │ │ └── spring │ │ │ └── load │ │ │ └── balance │ │ │ └── api │ │ │ └── ChatbookApplicationTests.java │ └── target │ │ ├── classes │ │ ├── application.properties │ │ └── com │ │ │ └── javatechie │ │ │ └── spring │ │ │ └── load │ │ │ └── balance │ │ │ └── api │ │ │ └── ChatbookApplication.class │ │ └── test-classes │ │ └── com │ │ └── javatechie │ │ └── spring │ │ └── load │ │ └── balance │ │ └── api │ │ └── ChatbookApplicationTests.class └── user-app │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── alanbinu │ │ │ │ └── spring │ │ │ │ └── load │ │ │ │ └── balance │ │ │ │ └── api │ │ │ │ ├── RibbonConfiguration.java │ │ │ │ └── UserAppApplication.java │ │ └── resources │ │ │ ├── META-INF │ │ │ └── additional-spring-configuration-metadata.json │ │ │ └── application.yml │ └── test │ │ └── java │ │ └── com │ │ └── alanbinu │ │ └── spring │ │ └── load │ │ └── balance │ │ └── api │ │ └── UserAppApplicationTests.java │ ├── target │ ├── classes │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ ├── additional-spring-configuration-metadata.json │ │ │ └── maven │ │ │ │ └── com.example │ │ │ │ └── user-app │ │ │ │ ├── pom.properties │ │ │ │ └── pom.xml │ │ ├── application.yml │ │ └── com │ │ │ └── javatechie │ │ │ └── spring │ │ │ └── load │ │ │ └── balance │ │ │ └── api │ │ │ ├── RibbonConfiguration.class │ │ │ └── UserAppApplication.class │ └── test-classes │ │ └── com │ │ └── javatechie │ │ └── spring │ │ └── load │ │ └── balance │ │ └── api │ │ └── UserAppApplicationTests.class │ └── user-app.iml ├── spring-propertysource-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── myapp.log ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springpropertysourceexample │ │ │ ├── Application.java │ │ │ ├── DataSourceConfig.java │ │ │ └── ProperySourceDemo.java │ └── resources │ │ ├── application.properties │ │ └── config.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springpropertysourceexample │ └── SpringPropertysourceExampleApplicationTests.java ├── springboot-async-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ └── springbootasyncexample │ │ │ ├── SpringbootAsyncApplication.java │ │ │ ├── model │ │ │ └── User.java │ │ │ └── service │ │ │ └── GitHubLookupService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── springbootasyncexample │ └── SpringbootAsyncApplicationTests.java ├── springboot-crud-hibernate-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ ├── SpringbootCrudHibernateExampleApplication.java │ │ │ ├── controller │ │ │ └── ProductController.java │ │ │ ├── exception │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Product.java │ │ │ ├── repository │ │ │ └── ProductRepository.java │ │ │ └── service │ │ │ ├── ProductService.java │ │ │ └── ProductServiceImpl.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── SpringbootCrudHibernateExampleApplicationTests.java ├── springboot-crud-rest-api-validation ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ └── springbootcrudrestapivalidation │ │ │ ├── SpringbootCrudRestApiValidationApplication.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── exception │ │ │ └── ErrorDetails.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── springbootcrudrestapivalidation │ └── SpringbootCrudRestApiValidationApplicationTests.java ├── springboot-hibernate-composite-key-demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ ├── SpringbootHibernateCompositeKeyDemoApplication.java │ │ │ ├── entity │ │ │ ├── Employee.java │ │ │ └── EmployeeIdentity.java │ │ │ └── repository │ │ │ └── EmployeeRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── SpringbootHibernateCompositeKeyDemoApplicationTests.java ├── springboot-hibernate-many-to-many-mapping ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ ├── SpringbootHibernateManyToManyMappingApplication.java │ │ │ ├── entity │ │ │ ├── Post.java │ │ │ └── Tag.java │ │ │ └── repository │ │ │ ├── PostRepository.java │ │ │ └── TagRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── SpringbootHibernateManyToManyMappingApplicationTests.java ├── springboot-hibernate-one-many-mapping ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ ├── SpringbootHibernateOneManyMappingApplication.java │ │ │ ├── entity │ │ │ ├── Comment.java │ │ │ └── Post.java │ │ │ └── repository │ │ │ ├── CommentRepository.java │ │ │ └── PostRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── SpringbootHibernateOneManyMappingApplicationTests.java ├── springboot-hibernate-one-one-mapping ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ ├── SpringbootHibernateOneOneMappingApplication.java │ │ │ ├── entity │ │ │ ├── Gender.java │ │ │ ├── User.java │ │ │ └── UserProfile.java │ │ │ └── repository │ │ │ ├── UserProfileRepository.java │ │ │ └── UserRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── SpringbootHibernateOneOneMappingApplicationTests.java ├── springboot-jpa-one-to-one-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw.cmd ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── alanbinu │ │ └── springboot │ │ └── jpa │ │ ├── Application.java │ │ ├── controller │ │ ├── InstructorController.java │ │ └── ResourceNotFoundException.java │ │ ├── model │ │ ├── Instructor.java │ │ └── InstructorDetail.java │ │ └── repository │ │ └── InstructorRepository.java │ └── resources │ └── application.properties ├── springboot-jsp-hello-world-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ ├── SpringbootJspHelloWorldExampleApplication.java │ │ │ └── controller │ │ │ └── HelloController.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── WEB-INF │ │ └── jsp │ │ └── hello.jsp │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── SpringbootJspHelloWorldExampleApplicationTests.java ├── springboot-mongodb-crud ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── springboot │ │ └── alanbinu │ │ ├── Application.java │ │ ├── controller │ │ └── ProductController.java │ │ ├── exception │ │ └── ResourceNotFoundException.java │ │ ├── model │ │ └── Product.java │ │ ├── repository │ │ └── ProductRepository.java │ │ └── service │ │ ├── ProductService.java │ │ └── ProductServiceImpl.java │ └── resources │ ├── application.properties │ └── templates │ ├── add-student.html │ ├── index.html │ └── update-student.html ├── springboot-multiple-datasources ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.wst.common.project.facet.core.xml ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── alanbinu │ │ └── springboot │ │ └── springbootmultipledatasources │ │ ├── SpringbootMultipleDatasourcesApplication.java │ │ ├── config │ │ ├── OrdersDataSourceConfig.java │ │ ├── SecurityDataSourceConfig.java │ │ └── WebMvcConfig.java │ │ ├── controllers │ │ └── HomeController.java │ │ ├── orders │ │ ├── entities │ │ │ ├── Order.java │ │ │ └── OrderItem.java │ │ └── repositories │ │ │ └── OrderRepository.java │ │ ├── security │ │ ├── entities │ │ │ ├── Address.java │ │ │ └── User.java │ │ └── repositories │ │ │ └── UserRepository.java │ │ └── services │ │ └── UserOrdersService.java │ └── resources │ ├── application-prod.properties │ ├── application.properties │ ├── orders-data.sql │ ├── security-data.sql │ └── templates │ └── users.html ├── springboot-stomp-websocket ├── .classpath ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.wst.common.project.facet.core.xml ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── alanbinu │ │ └── springboot │ │ └── websocket │ │ ├── Application.java │ │ ├── config │ │ └── WebSocketConfig.java │ │ ├── controller │ │ └── GreetingController.java │ │ └── model │ │ ├── Greeting.java │ │ └── HelloMessage.java │ └── resources │ └── static │ ├── app.js │ ├── index.html │ └── main.css ├── springboot-testing-examples ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboottestingexamples │ │ │ ├── SpringbootTestingExamplesApplication.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboottestingexamples │ ├── EmployeeRepositoryTests.java │ └── SpringbootTestingExamplesApplicationTests.java ├── springboot-thymeleaf-hello-world-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── alanbinu │ │ └── springboot │ │ ├── SpringbootThymeleafHelloWorldExampleApplication.java │ │ └── controller │ │ └── HelloController.java │ └── resources │ ├── application.properties │ └── templates │ └── hello.html ├── springboot-thymeleaf-security-demo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.wst.common.project.facet.core.xml ├── .springBeans ├── README.md ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── alanbinu │ │ └── springbootsecurity │ │ ├── SpringbootThymeleafSecurityDemoApplication.java │ │ ├── config │ │ ├── WebConfig.java │ │ └── WebSecurityConfig.java │ │ ├── entities │ │ ├── Message.java │ │ ├── Role.java │ │ └── User.java │ │ ├── repositories │ │ ├── MessageRepository.java │ │ └── UserRepository.java │ │ ├── security │ │ ├── AuthenticatedUser.java │ │ └── CustomUserDetailsService.java │ │ └── web │ │ └── HomeController.java │ └── resources │ ├── application.properties │ ├── data.sql │ ├── messages.properties │ ├── static │ ├── assets │ │ ├── bootstrap │ │ │ ├── css │ │ │ │ ├── bootstrap.css │ │ │ │ ├── bootstrap.css.map │ │ │ │ └── bootstrap.min.css │ │ │ ├── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ └── js │ │ │ │ └── bootstrap.min.js │ │ ├── css │ │ │ └── styles.css │ │ ├── font-awesome-4.5.0 │ │ │ ├── HELP-US-OUT.txt │ │ │ ├── css │ │ │ │ ├── font-awesome.css │ │ │ │ └── font-awesome.min.css │ │ │ ├── fonts │ │ │ │ ├── FontAwesome.otf │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ ├── fontawesome-webfont.svg │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ └── fontawesome-webfont.woff2 │ │ │ ├── less │ │ │ │ ├── animated.less │ │ │ │ ├── bordered-pulled.less │ │ │ │ ├── core.less │ │ │ │ ├── fixed-width.less │ │ │ │ ├── font-awesome.less │ │ │ │ ├── icons.less │ │ │ │ ├── larger.less │ │ │ │ ├── list.less │ │ │ │ ├── mixins.less │ │ │ │ ├── path.less │ │ │ │ ├── rotated-flipped.less │ │ │ │ ├── stacked.less │ │ │ │ └── variables.less │ │ │ └── scss │ │ │ │ ├── _animated.scss │ │ │ │ ├── _bordered-pulled.scss │ │ │ │ ├── _core.scss │ │ │ │ ├── _fixed-width.scss │ │ │ │ ├── _icons.scss │ │ │ │ ├── _larger.scss │ │ │ │ ├── _list.scss │ │ │ │ ├── _mixins.scss │ │ │ │ ├── _path.scss │ │ │ │ ├── _rotated-flipped.scss │ │ │ │ ├── _stacked.scss │ │ │ │ ├── _variables.scss │ │ │ │ └── font-awesome.scss │ │ └── js │ │ │ └── jquery-2.1.4.min.js │ └── error │ │ └── 403.html │ └── templates │ ├── adminhome.html │ ├── index.html │ ├── layout.html │ ├── login.html │ └── userhome.html ├── springboot-upload-download-file-database ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ └── fileuploaddownload │ │ │ ├── SpringbootUploadDownloadFileApplication.java │ │ │ ├── controller │ │ │ ├── FileDownloadController.java │ │ │ └── FileUploadController.java │ │ │ ├── exception │ │ │ ├── FileNotFoundException.java │ │ │ └── FileStorageException.java │ │ │ ├── model │ │ │ └── DatabaseFile.java │ │ │ ├── payload │ │ │ └── Response.java │ │ │ ├── repository │ │ │ └── DatabaseFileRepository.java │ │ │ └── service │ │ │ └── DatabaseFileService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── fileuploaddownload │ └── SpringbootUploadDownloadFileApplicationTests.java ├── springboot-upload-download-file-rest-api-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml ├── src │ ├── main │ │ ├── java │ │ │ └── net │ │ │ │ └── alanbinu │ │ │ │ └── springboot │ │ │ │ └── fileuploaddownload │ │ │ │ ├── SpringbootUploadDownloadFileApplication.java │ │ │ │ ├── controller │ │ │ │ ├── FileDownloadController.java │ │ │ │ └── FileUploadController.java │ │ │ │ ├── exception │ │ │ │ ├── FileNotFoundException.java │ │ │ │ └── FileStorageException.java │ │ │ │ ├── payload │ │ │ │ └── Response.java │ │ │ │ ├── property │ │ │ │ └── FileStorageProperties.java │ │ │ │ └── service │ │ │ │ └── FileStorageService.java │ │ └── resources │ │ │ └── application.properties │ └── test │ │ └── java │ │ └── net │ │ └── alanbinu │ │ └── springboot │ │ └── fileuploaddownload │ │ └── SpringbootUploadDownloadFileApplicationTests.java └── uploads │ ├── new-junior-born.png │ ├── project-structure.PNG │ └── spring-web-annotations.PNG ├── springboot2-annotation-config ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2annotationconfig │ │ │ ├── Springboot2AnnotationConfigApplication.java │ │ │ └── service │ │ │ ├── EmailService.java │ │ │ ├── MessageService.java │ │ │ ├── SMSService.java │ │ │ ├── TwitterService.java │ │ │ ├── UserService.java │ │ │ └── UserServiceImpl.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── guides │ └── springboot2 │ └── springboot2annotationconfig │ └── Springboot2AnnotationConfigApplicationTests.java ├── springboot2-externalizing-conf-properties ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── myapp.log ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2externalizingconfproperties │ │ │ ├── Application.java │ │ │ ├── DataSourceConfig.java │ │ │ └── PropertyController.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2externalizingconfproperties │ └── ApplicationTests.java ├── springboot2-freemarker-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── alanbinu │ │ └── springboot2 │ │ └── freemarker │ │ ├── Application.java │ │ ├── controller │ │ └── EmployeeController.java │ │ ├── model │ │ └── Employee.java │ │ └── repository │ │ └── EmployeeRepository.java │ └── resources │ ├── application.properties │ └── templates │ ├── index.ftl │ └── showEmployees.ftl ├── springboot2-java-config ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2javaconfig │ │ │ ├── Springboot2JavaConfigApplication.java │ │ │ └── service │ │ │ ├── EmailService.java │ │ │ ├── MessageProcessor.java │ │ │ ├── MessageProcessorImpl.java │ │ │ ├── MessageService.java │ │ │ ├── SMSService.java │ │ │ └── TwitterService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2javaconfig │ └── Springboot2JavaConfigApplicationTests.java ├── springboot2-jdbc-crud-mysql-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── jdbc │ │ │ ├── Application.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeJDBCRepository.java │ └── resources │ │ ├── application.properties │ │ ├── data.sql │ │ └── schema.sql │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpacrudexample │ ├── ApplicationTests.java │ └── EmployeeControllerIntegrationTest.java ├── springboot2-jms-activemq ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ └── main │ ├── java │ └── net │ │ └── alanbinu │ │ └── springboot │ │ ├── Application.java │ │ └── jms │ │ ├── Confirmation.java │ │ ├── ConfirmationReceiver.java │ │ ├── ConfirmationSender.java │ │ ├── User.java │ │ └── UserReceiver.java │ └── resources │ └── logback.xml ├── springboot2-jpa-auditing ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot │ │ │ └── springboot2jpaauditing │ │ │ ├── Springboot2JpaAuditingApplication.java │ │ │ ├── audit │ │ │ ├── Auditable.java │ │ │ └── AuditorAwareImpl.java │ │ │ ├── controller │ │ │ └── UserController.java │ │ │ ├── exception │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── User.java │ │ │ └── repository │ │ │ └── UserRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot │ └── springboot2jpaauditing │ └── Springboot2JpaAuditingApplicationTests.java ├── springboot2-jpa-crud-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2jpacrudexample │ │ │ ├── Application.java │ │ │ ├── SpringRestClient.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── exception │ │ │ ├── ErrorDetails.java │ │ │ ├── GlobalExceptionHandler.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpacrudexample │ ├── ApplicationTests.java │ └── EmployeeControllerIntegrationTest.java ├── springboot2-jpa-h2-crud-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2jpacrudexample │ │ │ ├── Application.java │ │ │ ├── SpringRestClient.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── exception │ │ │ ├── ErrorDetails.java │ │ │ ├── GlobalExceptionHandler.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpacrudexample │ ├── ApplicationTests.java │ └── EmployeeControllerIntegrationTest.java ├── springboot2-jpa-swagger2 ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2swagger2 │ │ │ ├── Springboot2Swagger2Application.java │ │ │ ├── config │ │ │ └── Swagger2Config.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── exception │ │ │ ├── ErrorDetails.java │ │ │ ├── GlobalExceptionHandler.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpaswagger2 │ └── Springboot2Swagger2ApplicationTests.java ├── springboot2-junit5-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2junit5example │ │ │ ├── Springboot2Junit5ExampleApplication.java │ │ │ └── controller │ │ │ └── MessageController.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2junit5example │ └── Springboot2Junit5ExampleApplicationTests.java ├── springboot2-logging ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── app.log ├── mvnw ├── mvnw.cmd ├── myapp.log ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2logging │ │ │ ├── Article.java │ │ │ ├── ArticleController.java │ │ │ ├── ArticleService.java │ │ │ └── Springboot2LoggingApplication.java │ └── resources │ │ ├── application.properties │ │ └── logback.xml │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2logging │ └── Springboot2LoggingApplicationTests.java ├── springboot2-mssql-jpa-hibernate-crud-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── crud │ │ │ ├── Application.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── exception │ │ │ ├── ErrorDetails.java │ │ │ ├── GlobalExceptionHandler.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpacrudexample │ ├── ApplicationTests.java │ └── EmployeeControllerIntegrationTest.java ├── springboot2-mybatis-mysql-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── jdbc │ │ │ ├── Application.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeMyBatisRepository.java │ └── resources │ │ ├── application.properties │ │ ├── data.sql │ │ └── schema.sql │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpacrudexample │ ├── ApplicationTests.java │ └── EmployeeControllerIntegrationTest.java ├── springboot2-postgresql-jpa-hibernate-crud-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── crud │ │ │ ├── Application.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── exception │ │ │ ├── ErrorDetails.java │ │ │ ├── GlobalExceptionHandler.java │ │ │ └── ResourceNotFoundException.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ └── repository │ │ │ └── EmployeeRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpacrudexample │ ├── ApplicationTests.java │ └── EmployeeControllerIntegrationTest.java ├── springboot2-springaop-example ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2jpacrudexample │ │ │ ├── Application.java │ │ │ ├── SpringRestClient.java │ │ │ ├── aspect │ │ │ └── LoggingAspect.java │ │ │ ├── controller │ │ │ └── EmployeeController.java │ │ │ ├── exception │ │ │ └── ErrorDetails.java │ │ │ ├── model │ │ │ └── Employee.java │ │ │ ├── repository │ │ │ └── EmployeeRepository.java │ │ │ └── service │ │ │ └── EmployeeService.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2jpacrudexample │ └── ApplicationTests.java ├── springboot2-webapp-jsp-WAR ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2webappjsp │ │ │ ├── Springboot2WebappJspApplication.java │ │ │ ├── controllers │ │ │ └── UserController.java │ │ │ ├── domain │ │ │ └── User.java │ │ │ └── repositories │ │ │ └── UserRepository.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── WEB-INF │ │ └── jsp │ │ └── users.jsp │ └── test │ └── java │ └── net │ └── guides │ └── springboot2 │ └── springboot2webappjsp │ └── Springboot2WebappJspApplicationTests.java ├── springboot2-webapp-jsp ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2webappjsp │ │ │ ├── Springboot2WebappJspApplication.java │ │ │ ├── controllers │ │ │ └── UserController.java │ │ │ ├── domain │ │ │ └── User.java │ │ │ └── repositories │ │ │ └── UserRepository.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── WEB-INF │ │ └── jsp │ │ └── users.jsp │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2webappjsp │ └── Springboot2WebappJspApplicationTests.java ├── springboot2-webapp-thymeleaf ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── alanbinu │ │ │ └── springboot2 │ │ │ └── springboot2webappthymeleaf │ │ │ ├── Springboot2WebappThymeleafApplication.java │ │ │ ├── controllers │ │ │ └── HomeController.java │ │ │ ├── domain │ │ │ └── User.java │ │ │ └── repositories │ │ │ └── UserRepository.java │ └── resources │ │ ├── application-prod.properties │ │ ├── application.properties │ │ ├── data.sql │ │ ├── messages.properties │ │ └── templates │ │ └── index.html │ └── test │ └── java │ └── net │ └── alanbinu │ └── springboot2 │ └── springboot2webappthymeleaf │ └── Springboot2WebappThymeleafApplicationTests.java └── springboot2-xml-config ├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── net │ │ └── alanbinu │ │ └── springboot2 │ │ └── springboot2xmlconfig │ │ ├── Springboot2XmlConfigApplication.java │ │ ├── model │ │ └── Message.java │ │ └── service │ │ ├── EmailService.java │ │ ├── MessageProcessor.java │ │ ├── MessageProcessorImpl.java │ │ ├── MessageService.java │ │ ├── SMSService.java │ │ └── TwitterService.java └── resources │ ├── application.properties │ └── applicationContext.xml └── test └── java └── net └── alanbinu └── springboot2 └── springboot2xmlconfig └── Springboot2XmlConfigApplicationTests.java /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/spring-boot-tutorial-master.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Project-4.SpringBoot-AWS-S3/backend/src/main/java/com/urunov/Awss3Application.java: -------------------------------------------------------------------------------- 1 | package com.urunov; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Awss3Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Awss3Application.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Project-4.SpringBoot-AWS-S3/backend/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | aws.access_key_id= 5 | aws.secret_access_key= 6 | aws.s3.bucket= 7 | aws.s3.region=AP_NORTHEAST_2 -------------------------------------------------------------------------------- /Project-4.SpringBoot-AWS-S3/backend/src/test/java/com/urunov/Awss3ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.urunov; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class Awss3ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Registration-FullStack-Springboot/src/main/java/pagination/sort/SortApplication.java: -------------------------------------------------------------------------------- 1 | package pagination.sort; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SortApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SortApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Registration-FullStack-Springboot/src/main/java/pagination/sort/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package pagination.sort.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | import pagination.sort.model.Employee; 6 | 7 | /** 8 | * @Author: apple 9 | * @created on 03/07/2020 10 | * @Project is PaginationSort 11 | */ 12 | @Repository 13 | public interface EmployeeRepository extends JpaRepository { 14 | } 15 | -------------------------------------------------------------------------------- /Registration-FullStack-Springboot/src/test/java/pagination/sort/SortApplicationTests.java: -------------------------------------------------------------------------------- 1 | package pagination.sort; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SortApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SpringBootConfSource/SpringXML/src/main/java/spring/config/model/Message.java: -------------------------------------------------------------------------------- 1 | package spring.config.model; 2 | 3 | /** 4 | * @Created 24 / 03 / 2020 - 2:44 PM 5 | * @project SpringBoot 6 | * @Author Hamdamboy 7 | */ 8 | public class Message { 9 | // 10 | private int id; 11 | private String message; 12 | 13 | public Message(int id, String message){ 14 | super(); 15 | this.id = id; 16 | this.message = message; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SpringBootConfSource/SpringXML/src/main/java/spring/config/service/EmailService.java: -------------------------------------------------------------------------------- 1 | package spring.config.service; 2 | 3 | /** 4 | * @Created 24 / 03 / 2020 - 2:42 PM 5 | * @project SpringBoot 6 | * @Author Hamdamboy 7 | */ 8 | public class EmailService implements MessageService { 9 | // 10 | public void sendMsg(String message) { 11 | System.out.println(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SpringBootConfSource/SpringXML/src/main/java/spring/config/service/MessageProcessor.java: -------------------------------------------------------------------------------- 1 | package spring.config.service; 2 | 3 | /** 4 | * @Created 24 / 03 / 2020 - 2:42 PM 5 | * @project SpringBoot 6 | * @Author Hamdamboy 7 | */ 8 | public interface MessageProcessor { 9 | public void processMsg(String message); 10 | } 11 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SpringBootConfSource/SpringXML/src/main/java/spring/config/service/MessageService.java: -------------------------------------------------------------------------------- 1 | package spring.config.service; 2 | 3 | /** 4 | * @Created 24 / 03 / 2020 - 2:44 PM 5 | * @project SpringBoot 6 | * @Author Hamdamboy 7 | */ 8 | public interface MessageService { 9 | public void sendMsg(String message); 10 | } 11 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SpringBootConfSource/SpringXML/src/main/java/spring/config/service/SMSService.java: -------------------------------------------------------------------------------- 1 | package spring.config.service; 2 | 3 | /** 4 | * @Created 24 / 03 / 2020 - 2:44 PM 5 | * @project SpringBoot 6 | * @Author Hamdamboy 7 | */ 8 | public class SMSService implements MessageService { 9 | 10 | @Override 11 | public void sendMsg(String message) { 12 | System.out.println(message); 13 | } 14 | 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SpringBootConfSource/SpringXML/src/main/java/spring/config/service/TwitterService.java: -------------------------------------------------------------------------------- 1 | package spring.config.service; 2 | 3 | /** 4 | * @Created 24 / 03 / 2020 - 2:44 PM 5 | * @project SpringBoot 6 | * @Author Hamdamboy 7 | */ 8 | public class TwitterService implements MessageService{ 9 | // 10 | @Override 11 | public void sendMsg(String message) { 12 | System.out.println(message); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SpringBootConfSource/SpringXML/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=9090 -------------------------------------------------------------------------------- /Spring Boot Configuration/SpringBootConfSource/SpringXML/src/test/java/spring/config/ConfigApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.config; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ConfigApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SringXMLConfig/src/main/java/spring/configure/model/Message.java: -------------------------------------------------------------------------------- 1 | package spring.configure.model; 2 | 3 | /** 4 | * @Created 30 / 03 / 2020 - 10:13 AM 5 | * @project SpringXMLCongif 6 | * @Author Hamdamboy 7 | */ 8 | public class Message { 9 | private int id; 10 | private String message; 11 | public Message(int id, String message) { 12 | super(); 13 | this.id = id; 14 | this.message = message; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SringXMLConfig/src/main/java/spring/configure/service/EmailService.java: -------------------------------------------------------------------------------- 1 | package spring.configure.service; 2 | 3 | /** 4 | * @Created 30 / 03 / 2020 - 10:14 AM 5 | * @project SpringXMLCongif 6 | * @Author Hamdamboy 7 | */ 8 | public class EmailService implements MessageService{ 9 | @Override 10 | public void sendMsg(String message) { 11 | System.out.println(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SringXMLConfig/src/main/java/spring/configure/service/MessageProcessor.java: -------------------------------------------------------------------------------- 1 | package spring.configure.service; 2 | 3 | /** 4 | * @Created 30 / 03 / 2020 - 10:14 AM 5 | * @project SpringXMLCongif 6 | * @Author Hamdamboy 7 | */ 8 | public interface MessageProcessor { 9 | public void processMsg(String message); 10 | } 11 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SringXMLConfig/src/main/java/spring/configure/service/MessageService.java: -------------------------------------------------------------------------------- 1 | package spring.configure.service; 2 | 3 | /** 4 | * @Created 30 / 03 / 2020 - 10:17 AM 5 | * @project SpringXMLCongif 6 | * @Author Hamdamboy 7 | */ 8 | public interface MessageService { 9 | public void sendMsg(String message); 10 | } 11 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SringXMLConfig/src/main/java/spring/configure/service/SmsService.java: -------------------------------------------------------------------------------- 1 | package spring.configure.service; 2 | 3 | /** 4 | * @Created 30 / 03 / 2020 - 10:14 AM 5 | * @project SpringXMLCongif 6 | * @Author Hamdamboy 7 | */ 8 | public class SmsService implements MessageService{ 9 | @Override 10 | public void sendMsg(String message) { 11 | System.out.println(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SringXMLConfig/src/main/java/spring/configure/service/TwitterService.java: -------------------------------------------------------------------------------- 1 | package spring.configure.service; 2 | 3 | /** 4 | * @Created 30 / 03 / 2020 - 10:14 AM 5 | * @project SpringXMLCongif 6 | * @Author Hamdamboy 7 | */ 8 | public class TwitterService implements MessageService { 9 | @Override 10 | public void sendMsg(String message) { 11 | System.out.println(message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SringXMLConfig/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Spring Boot Configuration/SringXMLConfig/src/test/java/spring/configure/ConfigureApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.configure; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ConfigureApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SpringBoot-Autowire-Qualifier/springbootcore.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/SpringBoot-Autowire-Qualifier/springbootcore.jpg -------------------------------------------------------------------------------- /SpringBoot-Autowire-Qualifier/src/main/java/Architecure.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/SpringBoot-Autowire-Qualifier/src/main/java/Architecure.jpg -------------------------------------------------------------------------------- /SpringBoot-Autowire-Qualifier/src/main/java/com/project/spring/configuration/AppConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.project.spring.configuration; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | public class AppConfiguration { 8 | // 9 | @Bean(name = "comp", initMethod = "turnOn", destroyMethod = "turnOf") 10 | Computer computer() { 11 | return new Computer(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SpringBoot-Autowire-Qualifier/src/main/java/com/project/spring/configuration/Computer.java: -------------------------------------------------------------------------------- 1 | package com.project.spring.configuration; 2 | 3 | import javax.annotation.PostConstruct; 4 | import javax.annotation.PreDestroy; 5 | 6 | public class Computer { 7 | // 8 | 9 | @PostConstruct 10 | public void turnOn() { 11 | System.out.println("Load operating system"); 12 | } 13 | 14 | @PreDestroy 15 | public void turnOf(){ 16 | System.out.println("Close all programs"); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /SpringBoot-Autowire-Qualifier/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /SpringBoot-Autowire-Qualifier/src/test/java/com/project/spring/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.project.spring; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/SpringBoot-GitApi-CodeChecking/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'pairing' 2 | -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/src/main/java/com/urunov/pairing/PairingApplication.java: -------------------------------------------------------------------------------- 1 | package com.urunov.pairing; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class PairingApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(PairingApplication.class, args); 11 | } 12 | 13 | } 14 | 15 | 16 | // https://github.com/gitlab4j/gitlab4j-api -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/src/main/java/com/urunov/pairing/repository/GitCommitRepo.java: -------------------------------------------------------------------------------- 1 | package com.urunov.pairing.repository; 2 | 3 | import com.urunov.pairing.data.GitCommit; 4 | import org.springframework.data.mongodb.repository.MongoRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface GitCommitRepo extends MongoRepository { 9 | } 10 | -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/src/main/java/com/urunov/pairing/repository/GitNamespaceRepo.java: -------------------------------------------------------------------------------- 1 | package com.urunov.pairing.repository; 2 | 3 | import com.urunov.pairing.data.GitNamespace; 4 | import org.springframework.data.mongodb.repository.MongoRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface GitNamespaceRepo extends MongoRepository { 9 | } 10 | -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/src/main/resources/activecode: -------------------------------------------------------------------------------- 1 | use activecode; 2 | db.posts.insertMany([ 3 | { 4 | title: 'Post Two', 5 | body: 'Body of post two', 6 | category: 'Technology', 7 | date: Date() 8 | }, 9 | { 10 | title: 'Post Three', 11 | body: 'Body of post three', 12 | category: 'News', 13 | date: Date() 14 | }, 15 | { 16 | title: 'Post Four', 17 | body: 'Body of post three', 18 | category: 'Entertainment', 19 | date: Date() 20 | } 21 | ]) -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # MongoDB (MongoProperties) 2 | 3 | # Create User: login/pwd 4 | spring.data.mongodb.username=urunov 5 | spring.data.mongodb.password=data2021! 6 | spring.data.mongodb.database=analysis2data 7 | 8 | spring.data.mongodb.port=27017 9 | spring.data.mongodb.host=localhost -------------------------------------------------------------------------------- /SpringBoot-GitApi-CodeChecking/src/test/java/com/urunov/pairing/PairingApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.urunov.pairing; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class PairingApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## References 4 | 1. [CRUD Spring Boot + Mongo DB](https://www.javaguides.net/2019/12/spring-boot-mongodb-crud-example-tutorial.html) 5 | -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/SpringBoot-MongoDB-NoSQL-CRUD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'mongodb' 2 | -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/src/main/java/com/urunov/mongodb/MongodbApplication.java: -------------------------------------------------------------------------------- 1 | package com.urunov.mongodb; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class MongodbApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(MongodbApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/src/main/java/com/urunov/mongodb/exception/ResourceNotFoundException.java: -------------------------------------------------------------------------------- 1 | package com.urunov.mongodb.exception; 2 | 3 | import org.springframework.web.bind.annotation.ResponseStatus; 4 | import org.springframework.http.HttpStatus; 5 | 6 | @ResponseStatus(value = HttpStatus.NOT_FOUND) 7 | public class ResourceNotFoundException extends Exception{ 8 | 9 | private static final long serialVersionUID = 1L; 10 | 11 | public ResourceNotFoundException(String message){ 12 | super(message); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/src/main/java/com/urunov/mongodb/model/DatabaseSequence.java: -------------------------------------------------------------------------------- 1 | package com.urunov.mongodb.model; 2 | 3 | import lombok.*; 4 | import org.springframework.data.mongodb.core.mapping.Document; 5 | 6 | @Getter 7 | @Setter 8 | @ToString 9 | @NoArgsConstructor 10 | @AllArgsConstructor 11 | @Document(collection = "database_sequences") 12 | public class DatabaseSequence { 13 | // 14 | private String id; 15 | private String seq; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # MongoDB (MongoProperties) 3 | 4 | # Create User: login/pwd 5 | 6 | spring.data.mongodb.username=urunov 7 | spring.data.mongodb.password=parol! 8 | spring.data.mongodb.database=crud2employee 9 | 10 | spring.data.mongodb.port=27017 11 | spring.data.mongodb.host=localhost -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/src/main/resources/schema.script: -------------------------------------------------------------------------------- 1 | ## DB create schema 2 | 3 | use crud2employee; 4 | db.createUser( 5 | { 6 | user: "urunov", 7 | pwd: "parol!", 8 | roles : [ 9 | { role: "readWrite", db: "crud2employee" }, 10 | { role: "readWrite", db: "projects" } 11 | ] 12 | } 13 | ); 14 | -------------------------------------------------------------------------------- /SpringBoot-MongoDB-NoSQL-CRUD/src/test/java/com/urunov/mongodb/MongodbApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.urunov.mongodb; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class MongodbApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SpringBoot-Swagger2-Enabling/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /SpringBoot-Swagger2-Enabling/src/test/java/spring/swagger/SwaggerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.swagger; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SwaggerApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SpringBoot-Todo-Project/Screen Shot 2020-04-30 at 11.58.22 AM.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/SpringBoot-Todo-Project/Screen Shot 2020-04-30 at 11.58.22 AM.png -------------------------------------------------------------------------------- /SpringBoot-Todo-Project/src/main/java/spring/project/ProjectApplication.java: -------------------------------------------------------------------------------- 1 | package spring.project; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ProjectApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ProjectApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /SpringBoot-Todo-Project/src/main/java/spring/project/repository/ToDoRepository.java: -------------------------------------------------------------------------------- 1 | package spring.project.repository; 2 | 3 | import org.springframework.data.repository.PagingAndSortingRepository; 4 | import org.springframework.stereotype.Repository; 5 | import spring.project.entity.ToDo; 6 | 7 | /** 8 | * @Author: apple 9 | * @created on 30/04/2020 10 | * @Project is SpringSimpleTodo 11 | */ 12 | 13 | @Repository 14 | public interface ToDoRepository extends PagingAndSortingRepository { 15 | } 16 | -------------------------------------------------------------------------------- /SpringBoot-Todo-Project/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /SpringBoot-Todo-Project/src/test/java/spring/project/ProjectApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.project; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ProjectApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot integrated with JSP/SpringJSPSimple/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.mvc.view.prefix=/WEB-INF/view/ 3 | spring.mvc.view.suffix=.jsp 4 | 5 | # For detailed loggin during development 6 | 7 | #logging.level.org.springframework=TRACE 8 | #logging.level.com=TRACE 9 | -------------------------------------------------------------------------------- /Springboot integrated with JSP/SpringJSPSimple/src/main/webapp/WEB-INF/view/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 3 | 4 | 5 |
6 |
7 | 8 |

Spring Boot JSP Example

9 |

Hello ${message}

10 | 11 | Click on this link to visit another page. 12 | 13 | 14 |
15 |
16 | 17 | -------------------------------------------------------------------------------- /Springboot integrated with JSP/SpringJSPSimple/src/main/webapp/WEB-INF/view/next.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 3 | 4 | 5 |
6 |
7 |

Another page-2

8 |

Welcome again Spring and JSP testing cases. ${message}

9 | 10 | Click on this link to visit previous page. 11 |
12 |
13 | 14 | -------------------------------------------------------------------------------- /Springboot integrated with JSP/SpringJSPSimple/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 | -------------------------------------------------------------------------------- /Springboot integrated with JSP/SpringJSPUpdate/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.suffix=/WEB-INF/view/ 2 | spring.mvc.view.prefix=.jsp 3 | -------------------------------------------------------------------------------- /Springboot integrated with JSP/SpringJSPUpdate/src/test/java/spring/jsp/JspApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.jsp; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class JspApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-ActiveMQ-Sample/src/main/java/com/urunov/activemq/ActivemqApplication.java: -------------------------------------------------------------------------------- 1 | package com.urunov.activemq; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ActivemqApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ActivemqApplication.class, args); 11 | } 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Springboot-ActiveMQ-Sample/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Springboot-ActiveMQ-Sample/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | activemq: 2 | broker-url: tcp://localhost:61616 -------------------------------------------------------------------------------- /Springboot-Annotation-BootApplication/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Springboot-Annotation-BootApplication/src/test/java/spring/annotation/AnnotationApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.annotation; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class AnnotationApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | // tets clsss 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Springboot-Annotation-LookService/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Springboot-Annotation-LookService/src/test/java/spring/annotation/AnnotationApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.annotation; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class AnnotationApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Employee-Salary/EmployeeSalary.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/Springboot-Employee-Salary/EmployeeSalary.JPG -------------------------------------------------------------------------------- /Springboot-Employee-Salary/README.md: -------------------------------------------------------------------------------- 1 | # Spring Boot Projects 2 | 3 | 4 | # Part-8: Spring Boot Real Project 5 | 6 | There is Employee Update process project. 7 | - Update 8 | - Add 9 | - Delete 10 | 11 | Maven Project 12 | 13 | This picture represents output of the project 14 | ![EmployeeSalary](https://user-images.githubusercontent.com/11626327/80946139-55f24c00-8e28-11ea-8a61-52d242b6ba9d.JPG) 15 | -------------------------------------------------------------------------------- /Springboot-Employee-Salary/src/main/java/spring/project/ProApplication.java: -------------------------------------------------------------------------------- 1 | package spring.project; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ProApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ProApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Employee-Salary/src/main/java/spring/project/dao/EmployeeDB.java: -------------------------------------------------------------------------------- 1 | package spring.project.dao; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | import spring.project.model.Employee; 6 | 7 | /** 8 | * @Author: apple 9 | * @created on 02/05/2020 10 | * @Project is EmployeeSalary 11 | */ 12 | 13 | public interface EmployeeDB extends JpaRepository { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Springboot-Employee-Salary/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | spring.jpa.hibernate.ddl-auto=update 3 | spring.datasource.url=jdbc:mysql://localhost:3306/springboot?characterEncoding=UTF-8&serverTimezone=UTC 4 | spring.datasource.username=root 5 | spring.datasource.password=posilka2020 6 | -------------------------------------------------------------------------------- /Springboot-Employee-Salary/src/test/java/spring/project/ProApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.project; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ProApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Employee-Search/src/main/java/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Springboot-Employee-Search/src/main/java/spring/project/ProjectApplication.java: -------------------------------------------------------------------------------- 1 | package spring.project; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ProjectApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ProjectApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Employee-Search/src/main/java/spring/project/config.java: -------------------------------------------------------------------------------- 1 | package spring.project; 2 | 3 | /** 4 | * @Created 04 / 05 / 2020 - 5:20 PM 5 | * @project EmployeeSearch 6 | * @Author Hamdamboy 7 | */ 8 | public class config { 9 | } 10 | -------------------------------------------------------------------------------- /Springboot-Employee-Search/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Springboot-Employee-Search/src/test/java/spring/project/ProjectApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.project; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class ProjectApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Jersey-JPA/src/main/java/spring/database/repository/JobRepository.java: -------------------------------------------------------------------------------- 1 | package spring.database.repository; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | import spring.database.model.Job; 7 | 8 | /** 9 | * @Author: apple 10 | * @created on 01/04/2020 11 | * @Project is SpringJerseyJPA 12 | */ 13 | @Repository 14 | public interface JobRepository extends JpaRepository { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Springboot-Jersey-JPA/src/test/java/spring/database/DatabaseApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.database; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class DatabaseApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Multiple-DataStructure/src/main/java/spring/mvc/orders/repository/OrderRepository.java: -------------------------------------------------------------------------------- 1 | package spring.mvc.orders.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import spring.mvc.orders.entities.Order; 5 | 6 | /** 7 | * @Created 09 / 04 / 2020 - 9:12 AM 8 | * @project SpringMultipleDataStructure 9 | * @Author Hamdamboy 10 | */ 11 | public interface OrderRepository extends JpaRepository { 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Multiple-DataStructure/src/main/java/spring/mvc/security/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package spring.mvc.security.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import spring.mvc.security.entity.User; 5 | 6 | /** 7 | * @Created 09 / 04 / 2020 - 8:55 AM 8 | * @project SpringMultipleDataStructure 9 | * @Author Hamdamboy 10 | */ 11 | public interface UserRepository extends JpaRepository { 12 | } 13 | -------------------------------------------------------------------------------- /Springboot-Multiple-DataStructure/src/test/java/spring/mvc/MvcApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.mvc; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class MvcApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Registration-Page/src/main/java/aspera/registration/RegistrationApplication.java: -------------------------------------------------------------------------------- 1 | package aspera.registration; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class RegistrationApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(RegistrationApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Registration-Page/src/test/java/aspera/registration/RegistrationApplicationTests.java: -------------------------------------------------------------------------------- 1 | package aspera.registration; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class RegistrationApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Registration-Project/src/main/java/spring/security/SecurityApplication.java: -------------------------------------------------------------------------------- 1 | package spring.security; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SecurityApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SecurityApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Registration-Project/src/main/java/spring/security/config/SecurityConfiguration.java: -------------------------------------------------------------------------------- 1 | package spring.security.config; 2 | 3 | /** 4 | * @Created 29 / 04 / 2020 - 3:51 PM 5 | * @project SpringRegistor 6 | * @Author Hamdamboy 7 | */ 8 | public class SecurityConfiguration { 9 | } 10 | -------------------------------------------------------------------------------- /Springboot-Registration-Project/src/main/java/spring/security/repisitory/UserRepository.java: -------------------------------------------------------------------------------- 1 | package spring.security.repisitory; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | import spring.security.model.User; 6 | 7 | /** 8 | * @Created 29 / 04 / 2020 - 3:51 PM 9 | * @project SpringRegistor 10 | * @Author Hamdamboy 11 | */ 12 | @Repository 13 | public interface UserRepository extends JpaRepository { 14 | 15 | User findByEmail(String email); 16 | } 17 | -------------------------------------------------------------------------------- /Springboot-Registration-Project/src/test/java/spring/security/SecurityApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.security; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SecurityApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-SLF4J-project/src/main/java/spring/database/DatabaseApplication.java: -------------------------------------------------------------------------------- 1 | package spring.database; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DatabaseApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DatabaseApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-SLF4J-project/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | logging.level.org.springframework.web=INFO 3 | logging.level.org.hibernate=ERROR 4 | logging.level.net.guides = DEBUG 5 | 6 | #logging.file = myapp.log -------------------------------------------------------------------------------- /Springboot-SLF4J-project/src/test/java/spring/database/DatabaseApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.database; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class DatabaseApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Security-Project/README.md: -------------------------------------------------------------------------------- 1 | # Part-8: Spring Boot Real Project 2 | 3 | ![Project-6](https://user-images.githubusercontent.com/11626327/82540072-755bd980-9b89-11ea-82b5-c72c106cb721.JPG) 4 | -------------------------------------------------------------------------------- /Springboot-Security-Project/src/main/java/spring/security/SecurityApplication.java: -------------------------------------------------------------------------------- 1 | package spring.security; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SecurityApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SecurityApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-Security-Project/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Springboot-Security-Project/src/main/resources/static/css/main.css: -------------------------------------------------------------------------------- 1 | h1{ 2 | color:#0000FF; 3 | } 4 | 5 | h2{ 6 | color:#FF0000; 7 | } 8 | 9 | footer{ 10 | margin-top:60px; 11 | } -------------------------------------------------------------------------------- /Springboot-Security-Project/src/main/resources/templates/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 |
9 | 10 |
11 | 12 |
13 |

Normal page (No need login)

14 |
15 | 16 |
17 | 18 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /Springboot-Security-Project/src/test/java/spring/security/SecurityApplicationTests.java: -------------------------------------------------------------------------------- 1 | package spring.security; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SecurityApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-ShoppingCard/fullstack/backend/src/main/java/com/urunov/CardApplication.java: -------------------------------------------------------------------------------- 1 | package com.urunov; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class CardApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(CardApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-ShoppingCard/fullstack/backend/src/main/java/com/urunov/constants/GeneralConstants.java: -------------------------------------------------------------------------------- 1 | package com.urunov.constants; 2 | 3 | /** 4 | * User: hamdamboy 5 | * Project: card 6 | * Github: @urunov 7 | */ 8 | public interface GeneralConstants { 9 | 10 | 11 | /** ID in the session of the shopping card object*/ 12 | String ID_SESSION_SHOPPING_CART = "shopping-cart-1"; 13 | } 14 | -------------------------------------------------------------------------------- /Springboot-ShoppingCard/fullstack/backend/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Springboot-ShoppingCard/fullstack/backend/src/main/resources/static/images/pusher-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/Springboot-ShoppingCard/fullstack/backend/src/main/resources/static/images/pusher-logo.png -------------------------------------------------------------------------------- /Springboot-ShoppingCard/fullstack/backend/src/main/resources/static/js/components/header.js: -------------------------------------------------------------------------------- 1 | var Header = React.createClass({ 2 | render: function() { 3 | return ( 4 |
5 |
6 |

Shopping Card Calculator on Real Time

7 |
8 |
9 | ); 10 | } 11 | }); -------------------------------------------------------------------------------- /Springboot-ShoppingCard/fullstack/backend/src/main/resources/static/js/components/productList.js: -------------------------------------------------------------------------------- 1 | var ProductList = React.createClass({ 2 | render: function() { 3 | 4 | var productsMapped = this.props.products.map(function (product, index) { 5 | return 6 | }); 7 | 8 | return (
{productsMapped}
); 9 | } 10 | }); -------------------------------------------------------------------------------- /Springboot-ShoppingCard/fullstack/backend/src/test/java/com/urunov/CardApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.urunov; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class CardApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/.settings/org.springframework.ide.eclipse.prefs: -------------------------------------------------------------------------------- 1 | boot.validation.initialized=true 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/src/main/java/net/alanbinu/springboot/loginregistrationspringbootauthjsp/Application.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.loginregistrationspringbootauthjsp; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | public static void main(String[] args) throws Exception { 9 | SpringApplication.run(Application.class, args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/src/main/java/net/alanbinu/springboot/loginregistrationspringbootauthjsp/repository/RoleRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.loginregistrationspringbootauthjsp.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import net.alanbinu.springboot.loginregistrationspringbootauthjsp.model.Role; 6 | 7 | public interface RoleRepository extends JpaRepository{ 8 | } 9 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/src/main/java/net/alanbinu/springboot/loginregistrationspringbootauthjsp/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.loginregistrationspringbootauthjsp.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import net.alanbinu.springboot.loginregistrationspringbootauthjsp.model.User; 6 | 7 | public interface UserRepository extends JpaRepository { 8 | User findByUsername(String username); 9 | } 10 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/src/main/java/net/alanbinu/springboot/loginregistrationspringbootauthjsp/service/UserService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.loginregistrationspringbootauthjsp.service; 2 | 3 | import net.alanbinu.springboot.loginregistrationspringbootauthjsp.model.User; 4 | 5 | public interface UserService { 6 | void save(User user); 7 | 8 | User findByUsername(String username); 9 | } 10 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## Spring view resolver set up 2 | spring.mvc.view.prefix=/WEB-INF/jsp/ 3 | spring.mvc.view.suffix=.jsp 4 | 5 | spring.datasource.url=jdbc:mysql://localhost:3306/demo?useSSL=false 6 | spring.datasource.username=root 7 | spring.datasource.password=Mysql@123 8 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect 9 | spring.jpa.hibernate.ddl-auto = update 10 | 11 | spring.messages.basename=validation 12 | 13 | logging.level.root = INFO,ERROR 14 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/src/main/resources/validation.properties: -------------------------------------------------------------------------------- 1 | NotEmpty=This field is required. 2 | Size.userForm.username=Please use between 6 and 32 characters. 3 | Duplicate.userForm.username=Someone already has that username. 4 | Size.userForm.password=Try one with at least 8 characters. 5 | Diff.userForm.passwordConfirm=These passwords don't match. -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Archetype Created Web Application 7 | 8 | -------------------------------------------------------------------------------- /login-registration-springboot-hibernate-jsp-auth/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World!

4 | 5 | 6 | -------------------------------------------------------------------------------- /spring covid-19/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /spring covid-19/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /spring covid-19/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /spring covid-19/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /spring covid-19/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /spring covid-19/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /spring covid-19/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /spring covid-19/.settings/org.springframework.ide.eclipse.prefs: -------------------------------------------------------------------------------- 1 | boot.validation.initialized=true 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /spring covid-19/README.md: -------------------------------------------------------------------------------- 1 | # Covid-19-Spring 2 | # Covid-19-Spring 3 | -------------------------------------------------------------------------------- /spring covid-19/bin/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /spring covid-19/bin/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | pom.xml.tag 3 | pom.xml.releaseBackup 4 | pom.xml.versionsBackup 5 | pom.xml.next 6 | release.properties 7 | dependency-reduced-pom.xml 8 | buildNumber.properties 9 | .mvn/timing.properties 10 | # https://github.com/takari/maven-wrapper#usage-without-binary-jar 11 | .mvn/wrapper/maven-wrapper.jar 12 | -------------------------------------------------------------------------------- /spring covid-19/bin/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /spring covid-19/bin/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /spring covid-19/bin/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /spring covid-19/bin/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /spring covid-19/bin/.mvn/wrapper/MavenWrapperDownloader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/bin/.mvn/wrapper/MavenWrapperDownloader.class -------------------------------------------------------------------------------- /spring covid-19/bin/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /spring covid-19/bin/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /spring covid-19/bin/src/main/java/io/javabrains/coronavirustracker/CoronavirusTrackerApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/bin/src/main/java/io/javabrains/coronavirustracker/CoronavirusTrackerApplication.class -------------------------------------------------------------------------------- /spring covid-19/bin/src/main/java/io/javabrains/coronavirustracker/controllers/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/bin/src/main/java/io/javabrains/coronavirustracker/controllers/HomeController.class -------------------------------------------------------------------------------- /spring covid-19/bin/src/main/java/io/javabrains/coronavirustracker/models/LocationStats.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/bin/src/main/java/io/javabrains/coronavirustracker/models/LocationStats.class -------------------------------------------------------------------------------- /spring covid-19/bin/src/main/java/io/javabrains/coronavirustracker/services/CoronaVirusDataService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/bin/src/main/java/io/javabrains/coronavirustracker/services/CoronaVirusDataService.class -------------------------------------------------------------------------------- /spring covid-19/bin/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /spring covid-19/bin/src/test/java/io/javabrains/coronavirustracker/CoronavirusTrackerApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/bin/src/test/java/io/javabrains/coronavirustracker/CoronavirusTrackerApplicationTests.class -------------------------------------------------------------------------------- /spring covid-19/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8087 -------------------------------------------------------------------------------- /spring covid-19/src/test/java/io/alanbinu/coronavirustracker/CoronavirusTrackerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package io.alanbinu.coronavirustracker; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class CoronavirusTrackerApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /spring covid-19/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Build-Jdk-Spec: 15 3 | Implementation-Title: coronavirus-tracker 4 | Implementation-Version: 0.0.1-SNAPSHOT 5 | Created-By: Maven Integration for Eclipse 6 | 7 | -------------------------------------------------------------------------------- /spring covid-19/target/classes/META-INF/maven/io.javabrains/coronavirus-tracker/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 27 09:20:04 IST 2021 3 | m2e.projectLocation=E\:\\My GitHub Projects\\spring covid-19\\coronavirus-tracker 4 | m2e.projectName=coronavirus-tracker 5 | groupId=io.javabrains 6 | artifactId=coronavirus-tracker 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /spring covid-19/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | 2 | server.port=8087 -------------------------------------------------------------------------------- /spring covid-19/target/classes/io/javabrains/coronavirustracker/CoronavirusTrackerApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/target/classes/io/javabrains/coronavirustracker/CoronavirusTrackerApplication.class -------------------------------------------------------------------------------- /spring covid-19/target/classes/io/javabrains/coronavirustracker/controllers/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/target/classes/io/javabrains/coronavirustracker/controllers/HomeController.class -------------------------------------------------------------------------------- /spring covid-19/target/classes/io/javabrains/coronavirustracker/models/LocationStats.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/target/classes/io/javabrains/coronavirustracker/models/LocationStats.class -------------------------------------------------------------------------------- /spring covid-19/target/classes/io/javabrains/coronavirustracker/services/CoronaVirusDataService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/target/classes/io/javabrains/coronavirustracker/services/CoronaVirusDataService.class -------------------------------------------------------------------------------- /spring covid-19/target/test-classes/io/javabrains/coronavirustracker/CoronavirusTrackerApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring covid-19/target/test-classes/io/javabrains/coronavirustracker/CoronavirusTrackerApplicationTests.class -------------------------------------------------------------------------------- /spring-aop-advice-examples/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /spring-aop-advice-examples/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring-aop-advice-examples/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /spring-aop-advice-examples/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /spring-aop-advice-examples/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2jpacrudexample.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.springboot2jpacrudexample.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /spring-aop-advice-examples/src/test/java/net/alanbinu/springboot2/springboot2jpacrudexample/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpacrudexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /spring-boot jpa-with-hibernate-and-h2/src/main/java/com/alanbinu/springboot/jpa/hibernate/h2/example/student/StudentRepository.java: -------------------------------------------------------------------------------- 1 | package com.alanbinu.springboot.jpa.hibernate.h2.example.student; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | @Repository 7 | public interface StudentRepository extends JpaRepository{ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /spring-boot jpa-with-hibernate-and-h2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # Enabling H2 Console 2 | spring.h2.console.enabled=true 3 | #Turn Statistics on 4 | spring.jpa.properties.hibernate.generate_statistics=true 5 | logging.level.org.hibernate.stat=debug 6 | # Show all queries 7 | spring.jpa.show-sql=true 8 | spring.jpa.properties.hibernate.format_sql=true 9 | logging.level.org.hibernate.type=trace 10 | 11 | 12 | spring.datasource.url=jdbc:h2:mem:testdb 13 | spring.data.jpa.repositories.bootstrap-mode=default -------------------------------------------------------------------------------- /spring-boot jpa-with-hibernate-and-h2/src/main/resources/data.sql: -------------------------------------------------------------------------------- 1 | insert into student 2 | values(10001,'Ranga', 'E1234567'); 3 | 4 | insert into student 5 | values(10002,'Ravi', 'A1234568'); -------------------------------------------------------------------------------- /spring-boot-2-jdbc-with-h2/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | 12 | ### IntelliJ IDEA ### 13 | .idea 14 | *.iws 15 | *.iml 16 | *.ipr 17 | 18 | ### NetBeans ### 19 | nbproject/private/ 20 | build/ 21 | nbbuild/ 22 | dist/ 23 | nbdist/ 24 | .nb-gradle/ -------------------------------------------------------------------------------- /spring-boot-2-jdbc-with-h2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # Enabling H2 Console 2 | spring.h2.console.enabled=true 3 | #Turn Statistics on 4 | spring.jpa.properties.hibernate.generate_statistics=true 5 | logging.level.org.hibernate.stat=debug 6 | # Show all queries 7 | spring.jpa.show-sql=true 8 | spring.jpa.properties.hibernate.format_sql=true 9 | logging.level.org.hibernate.type=trace 10 | 11 | spring.datasource.url=jdbc:h2:mem:testdb 12 | spring.data.jpa.repositories.bootstrap-mode=default -------------------------------------------------------------------------------- /spring-boot-2-jdbc-with-h2/src/main/resources/data.sql: -------------------------------------------------------------------------------- 1 | insert into student 2 | values(10001,'Ranga', 'E1234567'); 3 | 4 | insert into student 5 | values(10002,'Ravi', 'A1234568'); -------------------------------------------------------------------------------- /spring-boot-2-jdbc-with-h2/src/main/resources/schema.sql: -------------------------------------------------------------------------------- 1 | create table student 2 | ( 3 | id integer not null, 4 | name varchar(255) not null, 5 | passport_number varchar(255) not null, 6 | primary key(id) 7 | ); -------------------------------------------------------------------------------- /spring-boot-2-jdbc-with-h2/src/test/java/com/alanbinu/springboot/jdbc/h2/example/SpringBoot2JdbcWithH2ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.alanbinu.springboot.jdbc.h2.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SpringBoot2JdbcWithH2ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /spring-boot-2-jpa-spring-data-rest/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | 12 | ### IntelliJ IDEA ### 13 | .idea 14 | *.iws 15 | *.iml 16 | *.ipr 17 | 18 | ### NetBeans ### 19 | nbproject/private/ 20 | build/ 21 | nbbuild/ 22 | dist/ 23 | nbdist/ 24 | .nb-gradle/ -------------------------------------------------------------------------------- /spring-boot-2-jpa-spring-data-rest/src/main/java/com/alanbinu/springboot/jpa/spring/data/rest/example/student/StudentDataRestRepository.java: -------------------------------------------------------------------------------- 1 | package com.alanbinu.springboot.jpa.spring.data.rest.example.student; 2 | 3 | import org.springframework.data.repository.PagingAndSortingRepository; 4 | import org.springframework.data.rest.core.annotation.RepositoryRestResource; 5 | 6 | @RepositoryRestResource(path = "students", collectionResourceRel = "students") 7 | public interface StudentDataRestRepository extends PagingAndSortingRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /spring-boot-2-jpa-spring-data-rest/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # Enabling H2 Console 2 | spring.h2.console.enabled=true 3 | #Turn Statistics on 4 | spring.jpa.properties.hibernate.generate_statistics=true 5 | logging.level.org.hibernate.stat=debug 6 | # Show all queries 7 | spring.jpa.show-sql=true 8 | spring.jpa.properties.hibernate.format_sql=true 9 | logging.level.org.hibernate.type=trace 10 | 11 | spring.datasource.url=jdbc:h2:mem:testdb 12 | spring.data.jpa.repositories.bootstrap-mode=default -------------------------------------------------------------------------------- /spring-boot-2-jpa-spring-data-rest/src/main/resources/data.sql: -------------------------------------------------------------------------------- 1 | insert into student 2 | values(10001,'Ranga', 'E1234567'); 3 | 4 | insert into student 5 | values(10002,'Ravi', 'A1234568'); -------------------------------------------------------------------------------- /spring-boot-crud-rest/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /spring-boot-crud-rest/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring-boot-crud-rest/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /spring-boot-crud-rest/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.3/apache-maven-3.5.3-bin.zip 2 | -------------------------------------------------------------------------------- /spring-boot-crud-rest/src/main/java/com/alanbinu/springbootcrudrest/exception/ResourceNotFoundException.java: -------------------------------------------------------------------------------- 1 | package com.alanbinu.springbootcrudrest.exception; 2 | 3 | import org.springframework.http.HttpStatus; 4 | import org.springframework.web.bind.annotation.ResponseStatus; 5 | 6 | @ResponseStatus(value = HttpStatus.NOT_FOUND) 7 | public class ResourceNotFoundException extends Exception{ 8 | 9 | private static final long serialVersionUID = 1L; 10 | 11 | public ResourceNotFoundException(String message){ 12 | super(message); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /spring-boot-crud-rest/src/main/java/com/alanbinu/springbootcrudrest/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package com.alanbinu.springbootcrudrest.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import com.alanbinu.springbootcrudrest.model.User; 7 | 8 | @Repository 9 | public interface UserRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /spring-cloud-loadbalance/chatbook/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 -------------------------------------------------------------------------------- /spring-cloud-loadbalance/chatbook/src/test/java/com/alanbinu/spring/load/balance/api/ChatbookApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.alanbinu.spring.load.balance.api; 2 | 3 | import org.testng.annotations.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ChatbookApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /spring-cloud-loadbalance/chatbook/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 -------------------------------------------------------------------------------- /spring-cloud-loadbalance/chatbook/target/classes/com/javatechie/spring/load/balance/api/ChatbookApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring-cloud-loadbalance/chatbook/target/classes/com/javatechie/spring/load/balance/api/ChatbookApplication.class -------------------------------------------------------------------------------- /spring-cloud-loadbalance/chatbook/target/test-classes/com/javatechie/spring/load/balance/api/ChatbookApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring-cloud-loadbalance/chatbook/target/test-classes/com/javatechie/spring/load/balance/api/ChatbookApplicationTests.class -------------------------------------------------------------------------------- /spring-cloud-loadbalance/user-app/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | chatbook: 2 | ribbon: 3 | eureka: 4 | enabled: false 5 | listOfServers: localhost:8081,localhost:8082,localhost:8083 6 | ServerListRefreshInterval: 2000 7 | 8 | server: 9 | port: 9090 -------------------------------------------------------------------------------- /spring-cloud-loadbalance/user-app/src/test/java/com/alanbinu/spring/load/balance/api/UserAppApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.alanbinu.spring.load.balance.api; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class UserAppApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /spring-cloud-loadbalance/user-app/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: user-app 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: basantkumar.h 5 | Implementation-Vendor-Id: com.example 6 | Build-Jdk: 1.8.0_171 7 | Implementation-URL: https://projects.spring.io/spring-boot/#/spring-bo 8 | ot-starter-parent/user-app 9 | Created-By: Maven Integration for Eclipse 10 | 11 | -------------------------------------------------------------------------------- /spring-cloud-loadbalance/user-app/target/classes/META-INF/maven/com.example/user-app/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Sat Jun 09 20:27:09 IST 2018 3 | version=0.0.1-SNAPSHOT 4 | groupId=com.example 5 | m2e.projectName=user-app 6 | m2e.projectLocation=D\:\\POC\\SPRING BOOT TUTORIALS\\user-app 7 | artifactId=user-app 8 | -------------------------------------------------------------------------------- /spring-cloud-loadbalance/user-app/target/classes/application.yml: -------------------------------------------------------------------------------- 1 | chatbook: 2 | ribbon: 3 | eureka: 4 | enabled: false 5 | listOfServers: localhost:8081,localhost:8082,localhost:8083 6 | ServerListRefreshInterval: 2000 7 | 8 | server: 9 | port: 9090 -------------------------------------------------------------------------------- /spring-cloud-loadbalance/user-app/target/classes/com/javatechie/spring/load/balance/api/RibbonConfiguration.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring-cloud-loadbalance/user-app/target/classes/com/javatechie/spring/load/balance/api/RibbonConfiguration.class -------------------------------------------------------------------------------- /spring-cloud-loadbalance/user-app/target/classes/com/javatechie/spring/load/balance/api/UserAppApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring-cloud-loadbalance/user-app/target/classes/com/javatechie/spring/load/balance/api/UserAppApplication.class -------------------------------------------------------------------------------- /spring-cloud-loadbalance/user-app/target/test-classes/com/javatechie/spring/load/balance/api/UserAppApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring-cloud-loadbalance/user-app/target/test-classes/com/javatechie/spring/load/balance/api/UserAppApplicationTests.class -------------------------------------------------------------------------------- /spring-propertysource-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /spring-propertysource-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/spring-propertysource-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /spring-propertysource-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /spring-propertysource-example/src/main/java/net/alanbinu/springboot2/springpropertysourceexample/Application.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springpropertysourceexample; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Import; 6 | 7 | @SpringBootApplication 8 | public class Application { 9 | 10 | public static void main(String[] args) { 11 | SpringApplication.run(Application.class, args); 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /spring-propertysource-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.level.org.springframework.web=INFO 2 | logging.level.org.hibernate=ERROR 3 | logging.level.net.guides=DEBUG 4 | 5 | logging.file=myapp.log -------------------------------------------------------------------------------- /spring-propertysource-example/src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | jdbc.driver=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc:mysql://localhost:3306/dev_db 3 | jdbc.username=root 4 | jdbc.password=root -------------------------------------------------------------------------------- /springboot-async-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot-async-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-async-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-async-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot-async-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-async-example/src/main/resources/application.properties -------------------------------------------------------------------------------- /springboot-async-example/src/test/java/net/alanbinu/springboot/springbootasyncexample/SpringbootAsyncApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot.springbootasyncexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SpringbootAsyncApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot-crud-hibernate-example/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /springboot-crud-hibernate-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-crud-hibernate-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-crud-hibernate-example/.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 | -------------------------------------------------------------------------------- /springboot-crud-hibernate-example/src/main/java/net/alanbinu/springboot/SpringbootCrudHibernateExampleApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootCrudHibernateExampleApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootCrudHibernateExampleApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-crud-hibernate-example/src/main/java/net/alanbinu/springboot/repository/ProductRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import net.alanbinu.springboot.model.Product; 6 | 7 | public interface ProductRepository extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /springboot-crud-hibernate-example/src/main/java/net/alanbinu/springboot/service/ProductService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.service; 2 | 3 | import java.util.List; 4 | 5 | import net.alanbinu.springboot.model.Product; 6 | 7 | public interface ProductService { 8 | Product createProduct(Product product); 9 | 10 | Product updateProduct(Product product); 11 | 12 | List getAllProduct(); 13 | 14 | Product getProductById(long productId); 15 | 16 | void deleteProduct(long id); 17 | } 18 | -------------------------------------------------------------------------------- /springboot-crud-hibernate-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # h2 database 2 | 3 | spring.h2.console.enabled=true 4 | spring.h2.console.path=/h2 5 | 6 | spring.jpa.hibernate.ddl-auto=create-drop 7 | spring.jpa.show-sql=true 8 | -------------------------------------------------------------------------------- /springboot-crud-hibernate-example/src/test/java/net/alanbinu/springboot/SpringbootCrudHibernateExampleApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.javaguides.springboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SpringbootCrudHibernateExampleApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot-crud-rest-api-validation/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot-crud-rest-api-validation/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-crud-rest-api-validation/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-crud-rest-api-validation/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot-crud-rest-api-validation/src/main/java/net/alanbinu/springboot/springbootcrudrestapivalidation/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.springbootcrudrestapivalidation.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.springbootcrudrestapivalidation.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-hibernate-composite-key-demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /springboot-hibernate-composite-key-demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-hibernate-composite-key-demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-hibernate-composite-key-demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /springboot-hibernate-composite-key-demo/src/test/java/net/alanbinu/springboot/SpringbootHibernateCompositeKeyDemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.javaguides.springboot; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootHibernateCompositeKeyDemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-hibernate-many-to-many-mapping/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /springboot-hibernate-many-to-many-mapping/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-hibernate-many-to-many-mapping/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-hibernate-many-to-many-mapping/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /springboot-hibernate-many-to-many-mapping/src/main/java/net/alanbinu/springboot/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.entity.Post; 7 | 8 | @Repository 9 | public interface PostRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-hibernate-many-to-many-mapping/src/main/java/net/alanbinu/springboot/repository/TagRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.entity.Tag; 7 | 8 | @Repository 9 | public interface TagRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-hibernate-many-to-many-mapping/src/test/java/net/alanbinu/springboot/SpringbootHibernateManyToManyMappingApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.javaguides.springboot; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootHibernateManyToManyMappingApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-hibernate-one-many-mapping/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /springboot-hibernate-one-many-mapping/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-hibernate-one-many-mapping/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-hibernate-one-many-mapping/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /springboot-hibernate-one-many-mapping/src/main/java/net/alanbinu/springboot/repository/CommentRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.entity.Comment; 7 | 8 | @Repository 9 | public interface CommentRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-hibernate-one-many-mapping/src/main/java/net/alanbinu/springboot/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.entity.Post; 7 | 8 | @Repository 9 | public interface PostRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-hibernate-one-many-mapping/src/test/java/net/alanbinu/springboot/SpringbootHibernateOneManyMappingApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.javaguides.springboot; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootHibernateOneManyMappingApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-hibernate-one-one-mapping/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /springboot-hibernate-one-one-mapping/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-hibernate-one-one-mapping/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-hibernate-one-one-mapping/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /springboot-hibernate-one-one-mapping/src/main/java/net/alanbinu/springboot/entity/Gender.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.entity; 2 | 3 | public enum Gender { 4 | MALE, FEMALE 5 | 6 | } 7 | -------------------------------------------------------------------------------- /springboot-hibernate-one-one-mapping/src/main/java/net/alanbinu/springboot/repository/UserProfileRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.entity.UserProfile; 7 | 8 | @Repository 9 | public interface UserProfileRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-hibernate-one-one-mapping/src/main/java/net/alanbinu/springboot/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.entity.User; 7 | 8 | @Repository 9 | public interface UserRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-hibernate-one-one-mapping/src/test/java/net/alanbinu/springboot/SpringbootHibernateOneOneMappingApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.javaguides.springboot; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootHibernateOneOneMappingApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-jpa-one-to-one-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot-jpa-one-to-one-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-jpa-one-to-one-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-jpa-one-to-one-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot-jpa-one-to-one-example/src/main/java/net/alanbinu/springboot/jpa/controller/ResourceNotFoundException.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot.jpa.controller; 2 | 3 | import org.springframework.http.HttpStatus; 4 | import org.springframework.web.bind.annotation.ResponseStatus; 5 | 6 | @ResponseStatus(value = HttpStatus.NOT_FOUND) 7 | public class ResourceNotFoundException extends Exception{ 8 | 9 | private static final long serialVersionUID = 1L; 10 | 11 | public ResourceNotFoundException(String message){ 12 | super(message); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /springboot-jpa-one-to-one-example/src/main/java/net/alanbinu/springboot/jpa/repository/InstructorRepository.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot.jpa.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.guides.springboot.jpa.model.Instructor; 7 | 8 | @Repository 9 | public interface InstructorRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot-jpa-one-to-one-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.main.banner-mode=off 2 | logging.pattern.console=%clr(%d{yy-MM-dd E HH:mm:ss.SSS}){blue} %clr(%-5p) %clr(%logger{0}){blue} %clr(%m){faint}%n 3 | 4 | spring.datasource.url=jdbc:mysql://localhost:3306/demo?useSSL=false 5 | spring.datasource.username=root 6 | spring.datasource.password=root 7 | 8 | spring.jpa.hibernate.ddl-auto=update 9 | spring.jpa.database-platform=org.hibernate.dialect.MySQL57Dialect 10 | spring.jpa.generate-ddl=true 11 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /springboot-jsp-hello-world-example/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /springboot-jsp-hello-world-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-jsp-hello-world-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-jsp-hello-world-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /springboot-jsp-hello-world-example/src/main/java/net/alanbinu/springboot/SpringbootJspHelloWorldExampleApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootJspHelloWorldExampleApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootJspHelloWorldExampleApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot-jsp-hello-world-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix=/WEB-INF/jsp/ 2 | spring.mvc.view.suffix=.jsp 3 | -------------------------------------------------------------------------------- /springboot-jsp-hello-world-example/src/main/webapp/WEB-INF/jsp/hello.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

Hello ${name}!

11 | 12 | -------------------------------------------------------------------------------- /springboot-jsp-hello-world-example/src/test/java/net/alanbinu/springboot/SpringbootJspHelloWorldExampleApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.javaguides.springboot; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class SpringbootJspHelloWorldExampleApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-mongodb-crud/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /springboot-mongodb-crud/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-mongodb-crud/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-mongodb-crud/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.2/apache-maven-3.6.2-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar 3 | -------------------------------------------------------------------------------- /springboot-mongodb-crud/src/main/java/net/springboot/alanbinu/Application.java: -------------------------------------------------------------------------------- 1 | package net.springboot.alanbinu; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot-mongodb-crud/src/main/java/net/springboot/alanbinu/repository/ProductRepository.java: -------------------------------------------------------------------------------- 1 | package net.springboot.alanbinu.repository; 2 | 3 | import org.springframework.data.mongodb.repository.MongoRepository; 4 | 5 | import net.springboot.alanbinu.model.Product; 6 | 7 | public interface ProductRepository extends MongoRepository{ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /springboot-mongodb-crud/src/main/java/net/springboot/alanbinu/service/ProductService.java: -------------------------------------------------------------------------------- 1 | package net.springboot.alanbinu.service; 2 | 3 | import java.util.List; 4 | 5 | import net.springboot.alanbinu.model.Product; 6 | 7 | public interface ProductService { 8 | Product createProduct(Product product); 9 | 10 | Product updateProduct(Product product); 11 | 12 | List getAllProduct(); 13 | 14 | Product getProductById(long productId); 15 | 16 | void deleteProduct(long id); 17 | } 18 | -------------------------------------------------------------------------------- /springboot-mongodb-crud/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # MONGODB (MongoProperties) 2 | spring.data.mongodb.uri=mongodb://localhost:27017/ProductDB -------------------------------------------------------------------------------- /springboot-multiple-datasources/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /springboot-multiple-datasources/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.release=disabled 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /springboot-multiple-datasources/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /springboot-multiple-datasources/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /springboot-multiple-datasources/src/main/java/net/alanbinu/springboot/springbootmultipledatasources/orders/repositories/OrderRepository.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package net.alanbinu.springboot.springbootmultipledatasources.orders.repositories; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | 8 | import net.alanbinu.springboot.springbootmultipledatasources.orders.entities.Order; 9 | 10 | 11 | public interface OrderRepository extends JpaRepository{ 12 | 13 | } 14 | -------------------------------------------------------------------------------- /springboot-multiple-datasources/src/main/java/net/alanbinu/springboot/springbootmultipledatasources/security/repositories/UserRepository.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package net.alanbinu.springboot.springbootmultipledatasources.security.repositories; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | 8 | 9 | import net.alanbinu.springboot.springbootmultipledatasources.security.entities.User; 10 | 11 | 12 | public interface UserRepository extends JpaRepository 13 | { 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | target 3 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-stomp-websocket/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-stomp-websocket/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip 2 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.release=disabled 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-stomp-websocket/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /springboot-stomp-websocket/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Mar 01 09:09:11 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip 7 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/src/main/java/net/alanbinu/springboot/websocket/Application.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.websocket; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/src/main/java/net/alanbinu/springboot/websocket/model/Greeting.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.websocket.model; 2 | 3 | public class Greeting { 4 | 5 | private String content; 6 | 7 | public Greeting() { 8 | } 9 | 10 | public Greeting(String content) { 11 | this.content = content; 12 | } 13 | 14 | public String getContent() { 15 | return content; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/src/main/java/net/alanbinu/springboot/websocket/model/HelloMessage.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.websocket.model; 2 | 3 | public class HelloMessage { 4 | 5 | private String name; 6 | 7 | public HelloMessage() { 8 | } 9 | 10 | public HelloMessage(String name) { 11 | this.name = name; 12 | } 13 | 14 | public String getName() { 15 | return name; 16 | } 17 | 18 | public void setName(String name) { 19 | this.name = name; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /springboot-stomp-websocket/src/main/resources/static/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #f5f5f5; 3 | } 4 | 5 | #main-content { 6 | max-width: 940px; 7 | padding: 2em 3em; 8 | margin: 0 auto 20px; 9 | background-color: #fff; 10 | border: 1px solid #e5e5e5; 11 | -webkit-border-radius: 5px; 12 | -moz-border-radius: 5px; 13 | border-radius: 5px; 14 | } -------------------------------------------------------------------------------- /springboot-testing-examples/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot-testing-examples/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-testing-examples/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-testing-examples/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot-testing-examples/src/main/java/net/alanbinu/springboot2/springboottestingexamples/SpringbootTestingExamplesApplication.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboottestingexamples; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootTestingExamplesApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootTestingExamplesApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot-testing-examples/src/main/java/net/alanbinu/springboot2/springboottestingexamples/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboottestingexamples.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.springboottestingexamples.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | Employee findByFirstName(String username); 11 | } 12 | -------------------------------------------------------------------------------- /springboot-testing-examples/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.jpa.hibernate.ddl-auto=update 2 | spring.jpa.show-sql=true -------------------------------------------------------------------------------- /springboot-thymeleaf-hello-world-example/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /springboot-thymeleaf-hello-world-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-hello-world-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-thymeleaf-hello-world-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /springboot-thymeleaf-hello-world-example/src/main/java/net/alanbinu/springboot/SpringbootThymeleafHelloWorldExampleApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootThymeleafHelloWorldExampleApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootThymeleafHelloWorldExampleApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot-thymeleaf-hello-world-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springboot-thymeleaf-hello-world-example/src/main/resources/templates/hello.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 |

9 | 10 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.release=disabled 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-bin.zip 6 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/java/net/alanbinu/springbootsecurity/SpringbootThymeleafSecurityDemoApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springbootsecurity; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootThymeleafSecurityDemoApplication 8 | { 9 | public static void main(String[] args) 10 | { 11 | SpringApplication.run(SpringbootThymeleafSecurityDemoApplication.class, args); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/java/net/alanbinu/springbootsecurity/repositories/MessageRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springbootsecurity.repositories; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import net.alanbinu.springbootsecurity.entities.Message; 6 | 7 | 8 | public interface MessageRepository extends JpaRepository{ 9 | 10 | } 11 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/java/net/alanbinu/springbootsecurity/repositories/UserRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springbootsecurity.repositories; 2 | 3 | import java.util.Optional; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import net.alanbinu.springbootsecurity.entities.User; 8 | 9 | 10 | public interface UserRepository extends JpaRepository 11 | { 12 | 13 | Optional findByEmail(String email); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | label.email=Email 2 | label.password=Password 3 | label.login=Login 4 | label.submit=Submit 5 | 6 | info.logout_success=You have been logged out 7 | error.login_failed=Invalid Email and Password 8 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/css/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 75px; 3 | } -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/HELP-US-OUT.txt: -------------------------------------------------------------------------------- 1 | I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project, 2 | Fonticons (https://fonticons.com). It makes it easy to put the perfect icons on your website. Choose from our awesome, 3 | comprehensive icon sets or copy and paste your own. 4 | 5 | Please. Check it out. 6 | 7 | -Dave Gandy 8 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/less/fixed-width.less: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .@{fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/less/larger.less: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .@{fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .@{fa-css-prefix}-2x { font-size: 2em; } 11 | .@{fa-css-prefix}-3x { font-size: 3em; } 12 | .@{fa-css-prefix}-4x { font-size: 4em; } 13 | .@{fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/less/list.less: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: @fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .@{fa-css-prefix}-li { 11 | position: absolute; 12 | left: -@fa-li-width; 13 | width: @fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.@{fa-css-prefix}-lg { 17 | left: (-@fa-li-width + (4em / 14)); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/scss/_fixed-width.scss: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .#{$fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/scss/_larger.scss: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .#{$fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .#{$fa-css-prefix}-2x { font-size: 2em; } 11 | .#{$fa-css-prefix}-3x { font-size: 3em; } 12 | .#{$fa-css-prefix}-4x { font-size: 4em; } 13 | .#{$fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/assets/font-awesome-4.5.0/scss/_list.scss: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: $fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .#{$fa-css-prefix}-li { 11 | position: absolute; 12 | left: -$fa-li-width; 13 | width: $fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.#{$fa-css-prefix}-lg { 17 | left: -$fa-li-width + (4em / 14); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /springboot-thymeleaf-security-demo/src/main/resources/static/error/403.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | AccessDenied 9 | 10 | 11 |

You are not authorized to view this page!!

12 | 13 | 14 | -------------------------------------------------------------------------------- /springboot-upload-download-file-database/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot-upload-download-file-database/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-upload-download-file-database/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-upload-download-file-database/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot-upload-download-file-database/src/main/java/net/alanbinu/springboot/fileuploaddownload/SpringbootUploadDownloadFileApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.fileuploaddownload; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootUploadDownloadFileApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootUploadDownloadFileApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot-upload-download-file-database/src/main/java/net/alanbinu/springboot/fileuploaddownload/exception/FileStorageException.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.fileuploaddownload.exception; 2 | 3 | public class FileStorageException extends RuntimeException { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public FileStorageException(String message) { 8 | super(message); 9 | } 10 | 11 | public FileStorageException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /springboot-upload-download-file-database/src/main/java/net/alanbinu/springboot/fileuploaddownload/repository/DatabaseFileRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot.fileuploaddownload.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot.fileuploaddownload.model.DatabaseFile; 7 | 8 | @Repository 9 | public interface DatabaseFileRepository extends JpaRepository { 10 | 11 | } -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-upload-download-file-rest-api-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/src/main/java/net/alanbinu/springboot/fileuploaddownload/SpringbootUploadDownloadFileApplication.java: -------------------------------------------------------------------------------- 1 | package net.javaguides.springboot.fileuploaddownload; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SpringbootUploadDownloadFileApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SpringbootUploadDownloadFileApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/src/main/java/net/alanbinu/springboot/fileuploaddownload/exception/FileStorageException.java: -------------------------------------------------------------------------------- 1 | package net.javaguides.springboot.fileuploaddownload.exception; 2 | 3 | public class FileStorageException extends RuntimeException { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public FileStorageException(String message) { 8 | super(message); 9 | } 10 | 11 | public FileStorageException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | ## MULTIPART (MultipartProperties) 2 | # Enable multipart uploads 3 | spring.servlet.multipart.enabled=true 4 | # Threshold after which files are written to disk. 5 | spring.servlet.multipart.file-size-threshold=2KB 6 | # Max file size. 7 | spring.servlet.multipart.max-file-size=200MB 8 | # Max Request Size 9 | spring.servlet.multipart.max-request-size=215MB 10 | 11 | ## File Storage Properties 12 | file.upload-dir=./uploads 13 | 14 | server.port=8081 -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/uploads/new-junior-born.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-upload-download-file-rest-api-example/uploads/new-junior-born.png -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/uploads/project-structure.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-upload-download-file-rest-api-example/uploads/project-structure.PNG -------------------------------------------------------------------------------- /springboot-upload-download-file-rest-api-example/uploads/spring-web-annotations.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot-upload-download-file-rest-api-example/uploads/spring-web-annotations.PNG -------------------------------------------------------------------------------- /springboot2-annotation-config/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-annotation-config/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-annotation-config/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-annotation-config/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-annotation-config/src/main/java/net/alanbinu/springboot2/springboot2annotationconfig/service/EmailService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2annotationconfig.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service("EmailService") 6 | public class EmailService implements MessageService{ 7 | 8 | public void sendMsg(String message) { 9 | System.out.println(message); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /springboot2-annotation-config/src/main/java/net/alanbinu/springboot2/springboot2annotationconfig/service/MessageService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2annotationconfig.service; 2 | 3 | public interface MessageService { 4 | public void sendMsg(String message); 5 | } 6 | -------------------------------------------------------------------------------- /springboot2-annotation-config/src/main/java/net/alanbinu/springboot2/springboot2annotationconfig/service/SMSService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2annotationconfig.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service("SMSService") 6 | public class SMSService implements MessageService{ 7 | 8 | public void sendMsg(String message) { 9 | System.out.println(message); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /springboot2-annotation-config/src/main/java/net/alanbinu/springboot2/springboot2annotationconfig/service/TwitterService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2annotationconfig.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service("TwitterService") 6 | public class TwitterService implements MessageService{ 7 | 8 | public void sendMsg(String message) { 9 | System.out.println(message); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /springboot2-annotation-config/src/main/java/net/alanbinu/springboot2/springboot2annotationconfig/service/UserService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2annotationconfig.service; 2 | 3 | public interface UserService { 4 | public void processMsg(String message); 5 | } 6 | -------------------------------------------------------------------------------- /springboot2-annotation-config/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-annotation-config/src/main/resources/application.properties -------------------------------------------------------------------------------- /springboot2-externalizing-conf-properties/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-externalizing-conf-properties/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-externalizing-conf-properties/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-externalizing-conf-properties/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-externalizing-conf-properties/src/main/java/net/alanbinu/springboot2/springboot2externalizingconfproperties/Application.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2externalizingconfproperties; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot2-externalizing-conf-properties/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.level.org.springframework.web=INFO 2 | logging.level.org.hibernate=ERROR 3 | logging.level.net.guides=DEBUG 4 | 5 | logging.file=myapp.log 6 | 7 | jdbc.driver=com.mysql.jdbc.Driver 8 | jdbc.url=jdbc:mysql://localhost:3306/dev_db 9 | jdbc.username=root 10 | jdbc.password=root -------------------------------------------------------------------------------- /springboot2-externalizing-conf-properties/src/test/java/net/alanbinu/springboot2/springboot2externalizingconfproperties/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2externalizingconfproperties; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-freemarker-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-freemarker-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-freemarker-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-freemarker-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-freemarker-example/src/main/java/net/alanbinu/springboot2/freemarker/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.freemarker.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.freemarker.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-freemarker-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.freemarker.template-loader-path: classpath:/templates 2 | spring.freemarker.suffix: .ftl -------------------------------------------------------------------------------- /springboot2-java-config/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-java-config/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-java-config/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-java-config/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-java-config/src/main/java/net/alanbinu/springboot2/springboot2javaconfig/service/EmailService.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2javaconfig.service; 2 | 3 | public class EmailService implements MessageService{ 4 | 5 | public void sendMsg(String message) { 6 | System.out.println(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /springboot2-java-config/src/main/java/net/alanbinu/springboot2/springboot2javaconfig/service/MessageProcessor.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2javaconfig.service; 2 | 3 | public interface MessageProcessor { 4 | public void processMsg(String message); 5 | } 6 | -------------------------------------------------------------------------------- /springboot2-java-config/src/main/java/net/alanbinu/springboot2/springboot2javaconfig/service/MessageService.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2javaconfig.service; 2 | 3 | public interface MessageService { 4 | public void sendMsg(String message); 5 | } 6 | -------------------------------------------------------------------------------- /springboot2-java-config/src/main/java/net/alanbinu/springboot2/springboot2javaconfig/service/SMSService.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2javaconfig.service; 2 | 3 | public class SMSService implements MessageService{ 4 | 5 | public void sendMsg(String message) { 6 | System.out.println(message); 7 | } 8 | 9 | } 10 | 11 | -------------------------------------------------------------------------------- /springboot2-java-config/src/main/java/net/alanbinu/springboot2/springboot2javaconfig/service/TwitterService.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2javaconfig.service; 2 | 3 | public class TwitterService implements MessageService{ 4 | 5 | public void sendMsg(String message) { 6 | System.out.println(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /springboot2-java-config/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-java-config/src/main/resources/application.properties -------------------------------------------------------------------------------- /springboot2-java-config/src/test/java/net/alanbinu/springboot2/springboot2javaconfig/Springboot2JavaConfigApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2javaconfig; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class Springboot2JavaConfigApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-jdbc-crud-mysql-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-jdbc-crud-mysql-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-jdbc-crud-mysql-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-jdbc-crud-mysql-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-jdbc-crud-mysql-example/src/main/resources/data.sql: -------------------------------------------------------------------------------- 1 | insert into employees values(10001,'Ramesh', 'Fadatare', 'ramesh@gmail.com'); 2 | 3 | insert into employees values(10002,'Jit', 'Jadhav', 'jadhav@gmail.com'); -------------------------------------------------------------------------------- /springboot2-jdbc-crud-mysql-example/src/main/resources/schema.sql: -------------------------------------------------------------------------------- 1 | create table employees 2 | ( 3 | id integer not null, 4 | first_name varchar(255) not null, 5 | last_name varchar(255) not null, 6 | email_address varchar(255) not null, 7 | primary key(id) 8 | ); -------------------------------------------------------------------------------- /springboot2-jdbc-crud-mysql-example/src/test/java/net/alanbinu/springboot2/springboot2jpacrudexample/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpacrudexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-jms-activemq/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | 12 | ### IntelliJ IDEA ### 13 | .idea 14 | *.iws 15 | *.iml 16 | *.ipr 17 | 18 | ### NetBeans ### 19 | nbproject/private/ 20 | build/ 21 | nbbuild/ 22 | dist/ 23 | nbdist/ 24 | .nb-gradle/ 25 | # Elastic Beanstalk Files 26 | .elasticbeanstalk/* 27 | !.elasticbeanstalk/*.cfg.yml 28 | !.elasticbeanstalk/*.global.yml 29 | -------------------------------------------------------------------------------- /springboot2-jms-activemq/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-jms-activemq/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-jms-activemq/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-jpa-auditing/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-jpa-auditing/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-jpa-auditing/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-jpa-auditing/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-jpa-auditing/src/main/java/net/alanbinu/springboot/springboot2jpaauditing/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot.springboot2jpaauditing.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.guides.springboot.springboot2jpaauditing.model.User; 7 | 8 | @Repository 9 | public interface UserRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-jpa-auditing/src/test/java/net/alanbinu/springboot/springboot2jpaauditing/Springboot2JpaAuditingApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot.springboot2jpaauditing; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class Springboot2JpaAuditingApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-jpa-crud-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-jpa-crud-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-jpa-crud-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-jpa-crud-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-jpa-crud-example/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/Application.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2jpacrudexample; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Application { 8 | public static void main(String[] args) { 9 | SpringApplication.run(Application.class, args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-jpa-crud-example/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2jpacrudexample.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.springboot2jpacrudexample.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-jpa-crud-example/src/test/java/net/alanbinu/springboot2/springboot2jpacrudexample/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpacrudexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-jpa-h2-crud-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-jpa-h2-crud-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-jpa-h2-crud-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-jpa-h2-crud-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-jpa-h2-crud-example/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2jpacrudexample.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.springboot2jpacrudexample.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-jpa-h2-crud-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-jpa-h2-crud-example/src/main/resources/application.properties -------------------------------------------------------------------------------- /springboot2-jpa-h2-crud-example/src/test/java/net/alanbinu/springboot2/springboot2jpacrudexample/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpacrudexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-jpa-swagger2/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-jpa-swagger2/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-jpa-swagger2/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-jpa-swagger2/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-jpa-swagger2/src/main/java/net/alanbinu/springboot2/springboot2swagger2/Springboot2Swagger2Application.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2swagger2; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Springboot2Swagger2Application { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Springboot2Swagger2Application.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot2-jpa-swagger2/src/main/java/net/alanbinu/springboot2/springboot2swagger2/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2swagger2.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.springboot2swagger2.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-jpa-swagger2/src/test/java/net/alanbinu/springboot2/springboot2jpaswagger2/Springboot2Swagger2ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpaswagger2; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class Springboot2Swagger2ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-junit5-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-junit5-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-junit5-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-junit5-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-junit5-example/src/main/java/net/alanbinu/springboot2/springboot2junit5example/Springboot2Junit5ExampleApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2junit5example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Springboot2Junit5ExampleApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Springboot2Junit5ExampleApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot2-junit5-example/src/main/java/net/alanbinu/springboot2/springboot2junit5example/controller/MessageController.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2junit5example.controller; 2 | import org.springframework.web.bind.annotation.GetMapping; 3 | import org.springframework.web.bind.annotation.RestController; 4 | 5 | @RestController 6 | public class MessageController { 7 | 8 | @GetMapping("/hello") 9 | public String hello() { 10 | return "Hello World"; 11 | } 12 | 13 | } -------------------------------------------------------------------------------- /springboot2-junit5-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-junit5-example/src/main/resources/application.properties -------------------------------------------------------------------------------- /springboot2-logging/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-logging/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-logging/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-logging/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-logging/src/main/java/net/alanbinu/springboot2/springboot2logging/Springboot2LoggingApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2logging; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Springboot2LoggingApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Springboot2LoggingApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot2-logging/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.level.org.springframework.web=INFO 2 | logging.level.org.hibernate=ERROR 3 | logging.level.net.guides=DEBUG 4 | 5 | logging.file=myapp.log 6 | 7 | server.port=8081 8 | 9 | server.servlet.context-path=DemoContextPath -------------------------------------------------------------------------------- /springboot2-logging/src/test/java/net/alanbinu/springboot2/springboot2logging/Springboot2LoggingApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2logging; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class Springboot2LoggingApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-mssql-jpa-hibernate-crud-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-mssql-jpa-hibernate-crud-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-mssql-jpa-hibernate-crud-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-mssql-jpa-hibernate-crud-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-mssql-jpa-hibernate-crud-example/src/main/java/net/alanbinu/springboot2/crud/Application.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.crud; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.data.jpa.repository.config.EnableJpaAuditing; 6 | 7 | @SpringBootApplication 8 | @EnableJpaAuditing 9 | public class Application { 10 | public static void main(String[] args) { 11 | SpringApplication.run(Application.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /springboot2-mssql-jpa-hibernate-crud-example/src/main/java/net/alanbinu/springboot2/crud/exception/ResourceNotFoundException.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.crud.exception; 2 | 3 | import org.springframework.http.HttpStatus; 4 | import org.springframework.web.bind.annotation.ResponseStatus; 5 | 6 | @ResponseStatus(value = HttpStatus.NOT_FOUND) 7 | public class ResourceNotFoundException extends Exception{ 8 | 9 | private static final long serialVersionUID = 1L; 10 | 11 | public ResourceNotFoundException(String message){ 12 | super(message); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /springboot2-mssql-jpa-hibernate-crud-example/src/main/java/net/alanbinu/springboot2/crud/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.crud.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.crud.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-mssql-jpa-hibernate-crud-example/src/test/java/net/alanbinu/springboot2/springboot2jpacrudexample/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpacrudexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-mybatis-mysql-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-mybatis-mysql-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-mybatis-mysql-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-mybatis-mysql-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-mybatis-mysql-example/src/main/resources/data.sql: -------------------------------------------------------------------------------- 1 | insert into employees values(10001,'Ramesh', 'Fadatare', 'ramesh@gmail.com'); 2 | 3 | insert into employees values(10002,'Jit', 'Jadhav', 'jadhav@gmail.com'); -------------------------------------------------------------------------------- /springboot2-mybatis-mysql-example/src/main/resources/schema.sql: -------------------------------------------------------------------------------- 1 | create table employees 2 | ( 3 | id integer not null, 4 | first_name varchar(255) not null, 5 | last_name varchar(255) not null, 6 | email_address varchar(255) not null, 7 | primary key(id) 8 | ); -------------------------------------------------------------------------------- /springboot2-mybatis-mysql-example/src/test/java/net/alanbinu/springboot2/springboot2jpacrudexample/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpacrudexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-postgresql-jpa-hibernate-crud-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-postgresql-jpa-hibernate-crud-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-postgresql-jpa-hibernate-crud-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-postgresql-jpa-hibernate-crud-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-postgresql-jpa-hibernate-crud-example/src/main/java/net/alanbinu/springboot2/crud/Application.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.crud; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.data.jpa.repository.config.EnableJpaAuditing; 6 | 7 | @SpringBootApplication 8 | @EnableJpaAuditing 9 | public class Application { 10 | public static void main(String[] args) { 11 | SpringApplication.run(Application.class, args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /springboot2-postgresql-jpa-hibernate-crud-example/src/main/java/net/alanbinu/springboot2/crud/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.crud.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.crud.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-postgresql-jpa-hibernate-crud-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:postgresql://localhost:5432/employees 2 | spring.datasource.username=postgres 3 | spring.datasource.password=root 4 | spring.jpa.show-sql=true 5 | 6 | ## Hibernate Properties 7 | # The SQL dialect makes Hibernate generate better SQL for the chosen database 8 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect 9 | 10 | # Hibernate ddl auto (create, create-drop, validate, update) 11 | spring.jpa.hibernate.ddl-auto = update 12 | -------------------------------------------------------------------------------- /springboot2-postgresql-jpa-hibernate-crud-example/src/test/java/net/alanbinu/springboot2/springboot2jpacrudexample/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpacrudexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-springaop-example/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-springaop-example/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-springaop-example/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-springaop-example/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-springaop-example/src/main/java/net/alanbinu/springboot2/springboot2jpacrudexample/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2jpacrudexample.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | import org.springframework.stereotype.Repository; 5 | 6 | import net.alanbinu.springboot2.springboot2jpacrudexample.model.Employee; 7 | 8 | @Repository 9 | public interface EmployeeRepository extends JpaRepository{ 10 | 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-springaop-example/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.level.org.springframework.web=INFO 2 | logging.level.org.hibernate=ERROR 3 | logging.level.net.guides=DEBUG -------------------------------------------------------------------------------- /springboot2-springaop-example/src/test/java/net/alanbinu/springboot2/springboot2jpacrudexample/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2jpacrudexample; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-webapp-jsp-WAR/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-webapp-jsp-WAR/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-webapp-jsp-WAR/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-webapp-jsp-WAR/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-webapp-jsp-WAR/src/main/java/net/alanbinu/springboot2/springboot2webappjsp/repositories/UserRepository.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2webappjsp.repositories; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import net.guides.springboot2.springboot2webappjsp.domain.User; 6 | 7 | public interface UserRepository extends JpaRepository 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /springboot2-webapp-jsp-WAR/src/test/java/net/guides/springboot2/springboot2webappjsp/Springboot2WebappJspApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2webappjsp; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class Springboot2WebappJspApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-webapp-jsp/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-webapp-jsp/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-webapp-jsp/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-webapp-jsp/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-webapp-jsp/src/main/java/net/alanbinu/springboot2/springboot2webappjsp/repositories/UserRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2webappjsp.repositories; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import net.alanbinu.springboot2.springboot2webappjsp.domain.User; 6 | 7 | public interface UserRepository extends JpaRepository 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /springboot2-webapp-jsp/src/test/java/net/alanbinu/springboot2/springboot2webappjsp/Springboot2WebappJspApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2webappjsp; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class Springboot2WebappJspApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /springboot2-webapp-thymeleaf/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-webapp-thymeleaf/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-webapp-thymeleaf/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-webapp-thymeleaf/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-webapp-thymeleaf/src/main/java/net/alanbinu/springboot2/springboot2webappthymeleaf/Springboot2WebappThymeleafApplication.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2webappthymeleaf; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class Springboot2WebappThymeleafApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(Springboot2WebappThymeleafApplication.class, args); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /springboot2-webapp-thymeleaf/src/main/java/net/alanbinu/springboot2/springboot2webappthymeleaf/repositories/UserRepository.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2webappthymeleaf.repositories; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import net.alanbinu.springboot2.springboot2webappthymeleaf.domain.User; 6 | 7 | public interface UserRepository extends JpaRepository 8 | { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /springboot2-webapp-thymeleaf/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | logging.level.org.springframework=INFO 3 | 4 | ################### DataSource Configuration ########################## 5 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 6 | spring.datasource.url=jdbc:mysql://localhost:3306/users_database 7 | spring.datasource.username=root 8 | spring.datasource.password=root 9 | 10 | ################### Hibernate Configuration ########################## 11 | 12 | spring.jpa.hibernate.ddl-auto=update 13 | spring.jpa.show-sql=true 14 | 15 | -------------------------------------------------------------------------------- /springboot2-webapp-thymeleaf/src/main/resources/data.sql: -------------------------------------------------------------------------------- 1 | delete from user; 2 | 3 | INSERT INTO `users_database`.`user` (`id`, `name`) VALUES ('1', 'Salman'); 4 | INSERT INTO `users_database`.`user` (`id`, `name`) VALUES ('2', 'SRK'); 5 | INSERT INTO `users_database`.`user` (`id`, `name`) VALUES ('3', 'AMIR'); 6 | INSERT INTO `users_database`.`user` (`id`, `name`) VALUES ('4', 'Tiger'); 7 | INSERT INTO `users_database`.`user` (`id`, `name`) VALUES ('5', 'Prabhas'); 8 | -------------------------------------------------------------------------------- /springboot2-webapp-thymeleaf/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | app.title=SpringMVC JPA Demo (With SpringBoot) -------------------------------------------------------------------------------- /springboot2-xml-config/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | 4 | ### STS ### 5 | .apt_generated 6 | .classpath 7 | .factorypath 8 | .project 9 | .settings 10 | .springBeans 11 | .sts4-cache 12 | 13 | ### IntelliJ IDEA ### 14 | .idea 15 | *.iws 16 | *.iml 17 | *.ipr 18 | 19 | ### NetBeans ### 20 | /nbproject/private/ 21 | /build/ 22 | /nbbuild/ 23 | /dist/ 24 | /nbdist/ 25 | /.nb-gradle/ -------------------------------------------------------------------------------- /springboot2-xml-config/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-xml-config/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /springboot2-xml-config/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip 2 | -------------------------------------------------------------------------------- /springboot2-xml-config/src/main/java/net/alanbinu/springboot2/springboot2xmlconfig/model/Message.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2xmlconfig.model; 2 | 3 | public class Message { 4 | private int id; 5 | private String message; 6 | public Message(int id, String message) { 7 | super(); 8 | this.id = id; 9 | this.message = message; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /springboot2-xml-config/src/main/java/net/alanbinu/springboot2/springboot2xmlconfig/service/EmailService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2xmlconfig.service; 2 | 3 | public class EmailService implements MessageService{ 4 | 5 | public void sendMsg(String message) { 6 | System.out.println(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /springboot2-xml-config/src/main/java/net/alanbinu/springboot2/springboot2xmlconfig/service/MessageProcessor.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2xmlconfig.service; 2 | 3 | public interface MessageProcessor { 4 | public void processMsg(String message); 5 | } 6 | -------------------------------------------------------------------------------- /springboot2-xml-config/src/main/java/net/alanbinu/springboot2/springboot2xmlconfig/service/MessageProcessorImpl.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2xmlconfig.service; 2 | 3 | public class MessageProcessorImpl implements MessageProcessor { 4 | 5 | private MessageService messageService; 6 | 7 | public void setMessageService(MessageService messageService) { 8 | this.messageService = messageService; 9 | } 10 | 11 | public void processMsg(String message) { 12 | messageService.sendMsg(message); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /springboot2-xml-config/src/main/java/net/alanbinu/springboot2/springboot2xmlconfig/service/MessageService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2xmlconfig.service; 2 | 3 | public interface MessageService { 4 | public void sendMsg(String message); 5 | } 6 | -------------------------------------------------------------------------------- /springboot2-xml-config/src/main/java/net/alanbinu/springboot2/springboot2xmlconfig/service/SMSService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2xmlconfig.service; 2 | 3 | public class SMSService implements MessageService{ 4 | 5 | public void sendMsg(String message) { 6 | System.out.println(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /springboot2-xml-config/src/main/java/net/alanbinu/springboot2/springboot2xmlconfig/service/TwitterService.java: -------------------------------------------------------------------------------- 1 | package net.alanbinu.springboot2.springboot2xmlconfig.service; 2 | 3 | public class TwitterService implements MessageService{ 4 | 5 | public void sendMsg(String message) { 6 | System.out.println(message); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /springboot2-xml-config/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlanBinu007/Spring-Boot-Advanced-Projects/3405c0028aebf7f1a7cb3e9ca2ac1fb28cf49cf4/springboot2-xml-config/src/main/resources/application.properties -------------------------------------------------------------------------------- /springboot2-xml-config/src/test/java/net/alanbinu/springboot2/springboot2xmlconfig/Springboot2XmlConfigApplicationTests.java: -------------------------------------------------------------------------------- 1 | package net.guides.springboot2.springboot2xmlconfig; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class Springboot2XmlConfigApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | --------------------------------------------------------------------------------