This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.stereotype.Component; | |
| import org.springframework.web.filter.GenericFilterBean; | |
| import javax.servlet.FilterChain; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.ServletRequest; | |
| import javax.servlet.ServletResponse; | |
| import javax.servlet.http.HttpServletResponse; | |
| import java.io.IOException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ResourceBundle; | |
| public class MessageSourceUtils { | |
| private ResourceBundle bundle; | |
| private static MessageSourceUtils instance = new MessageSourceUtils(); | |
| private MessageSourceUtils() { | |
| bundle = ResourceBundle.getBundle("messages"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getUrlQueries() { | |
| var args = {}; | |
| var query = location.search.substring(1); | |
| var pairs = query.split("&"); | |
| for (var i = 0; i < pairs.length; i++) { | |
| var pos = pairs[i].indexOf('='); | |
| if (pos == -1) continue; | |
| var name = pairs[i].substring(0, pos); | |
| var value = pairs[i].substring(pos + 1); | |
| value = decodeURIComponent(value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.digimon.demo.domain.todo | |
| import org.springframework.data.jpa.repository.JpaRepository | |
| interface TodoRepository : JpaRepository<Todo, Long> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.digimon.demo.router | |
| import com.digimon.demo.handler.TodoHandler | |
| import org.springframework.context.annotation.Bean | |
| import org.springframework.context.annotation.Configuration | |
| import org.springframework.web.reactive.function.server.RequestPredicates.path | |
| import org.springframework.web.reactive.function.server.RouterFunctions.nest | |
| import org.springframework.web.reactive.function.server.router | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.digimon.demo.handler | |
| import com.digimon.demo.domain.todo.Todo | |
| import com.digimon.demo.domain.todo.TodoRepository | |
| import org.springframework.http.MediaType | |
| import org.springframework.stereotype.Component | |
| import org.springframework.web.reactive.function.server.ServerRequest | |
| import org.springframework.web.reactive.function.server.ServerResponse | |
| import org.springframework.web.reactive.function.server.ServerResponse.notFound | |
| import org.springframework.web.reactive.function.server.ServerResponse.ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring: | |
| profiles: | |
| active: dev | |
| jpa: | |
| show-sql: true | |
| main: | |
| allow-bean-definition-overriding: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Spring Boot --> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-webflux</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-test</artifactId> | |
| <scope>test</scope> | |
| </dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Kotlin --> | |
| <dependency> | |
| <groupId>org.jetbrains.kotlin</groupId> | |
| <artifactId>kotlin-reflect</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.jetbrains.kotlin</groupId> | |
| <artifactId>kotlin-stdlib-jdk8</artifactId> | |
| </dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- H2 Database --> | |
| <dependency> | |
| <groupId>com.h2database</groupId> | |
| <artifactId>h2</artifactId> | |
| <scope>runtime</scope> | |
| </dependency> |
OlderNewer