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