diff --git a/src/main/kotlin/site/katchup/springboot/KatchupserverApplication.kt b/src/main/kotlin/site/katchup/springboot/KatchupserverApplication.kt index 10c3bab..74b978e 100644 --- a/src/main/kotlin/site/katchup/springboot/KatchupserverApplication.kt +++ b/src/main/kotlin/site/katchup/springboot/KatchupserverApplication.kt @@ -7,5 +7,5 @@ import org.springframework.boot.runApplication class KatchupserverApplication fun main(args: Array) { - runApplication(*args) + runApplication(*args) } diff --git a/src/main/kotlin/site/katchup/springboot/config/GlobalLoggerFactory.kt b/src/main/kotlin/site/katchup/springboot/config/GlobalLoggerFactory.kt index 4c7efaa..819b1d4 100644 --- a/src/main/kotlin/site/katchup/springboot/config/GlobalLoggerFactory.kt +++ b/src/main/kotlin/site/katchup/springboot/config/GlobalLoggerFactory.kt @@ -3,4 +3,4 @@ package site.katchup.springboot.config import org.slf4j.Logger import org.slf4j.LoggerFactory -inline fun T.getLogger(): Logger = LoggerFactory.getLogger(T::class.java)!! \ No newline at end of file +inline fun T.getLogger(): Logger = LoggerFactory.getLogger(T::class.java)!! diff --git a/src/main/kotlin/site/katchup/springboot/config/WebSocketConfig.kt b/src/main/kotlin/site/katchup/springboot/config/WebSocketConfig.kt index e801e6b..4b95eb2 100644 --- a/src/main/kotlin/site/katchup/springboot/config/WebSocketConfig.kt +++ b/src/main/kotlin/site/katchup/springboot/config/WebSocketConfig.kt @@ -1,6 +1,5 @@ package site.katchup.springboot.config -import org.slf4j.LoggerFactory import org.springframework.context.annotation.Configuration import org.springframework.messaging.simp.config.MessageBrokerRegistry import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker @@ -13,12 +12,12 @@ class WebSocketConfig : WebSocketMessageBrokerConfigurer { override fun registerStompEndpoints(registry: StompEndpointRegistry) { registry.addEndpoint("/ws") - .setAllowedOrigins("*") - .withSockJS() + .setAllowedOrigins("*") + .withSockJS() } override fun configureMessageBroker(registry: MessageBrokerRegistry) { registry.setApplicationDestinationPrefixes("/sub") registry.enableSimpleBroker("/pub") } -} \ No newline at end of file +} diff --git a/src/main/kotlin/site/katchup/springboot/controller/WebSocketTestController.kt b/src/main/kotlin/site/katchup/springboot/controller/WebSocketTestController.kt index a0e8372..2376009 100644 --- a/src/main/kotlin/site/katchup/springboot/controller/WebSocketTestController.kt +++ b/src/main/kotlin/site/katchup/springboot/controller/WebSocketTestController.kt @@ -5,7 +5,6 @@ import org.springframework.messaging.simp.SimpMessageSendingOperations import org.springframework.stereotype.Controller import site.katchup.springboot.dto.ChatMessage - @Controller class WebSocketTestController( private val simpMessageSendingOperations: SimpMessageSendingOperations @@ -14,4 +13,4 @@ class WebSocketTestController( fun handle(message: ChatMessage) { simpMessageSendingOperations.convertAndSend("/sub/channel" + message.channelId, message.data) } -} \ No newline at end of file +} diff --git a/src/main/kotlin/site/katchup/springboot/dto/ChatMessage.kt b/src/main/kotlin/site/katchup/springboot/dto/ChatMessage.kt index e710a56..7d41b26 100644 --- a/src/main/kotlin/site/katchup/springboot/dto/ChatMessage.kt +++ b/src/main/kotlin/site/katchup/springboot/dto/ChatMessage.kt @@ -5,5 +5,4 @@ class ChatMessage( val sender: String, val channelId: String, val data: Any -) { -} \ No newline at end of file +) diff --git a/src/test/kotlin/site/katchup/springboot/KatchupserverApplicationTests.kt b/src/test/kotlin/site/katchup/springboot/KatchupserverApplicationTests.kt index f0dbc2b..2b6d4fe 100644 --- a/src/test/kotlin/site/katchup/springboot/KatchupserverApplicationTests.kt +++ b/src/test/kotlin/site/katchup/springboot/KatchupserverApplicationTests.kt @@ -6,8 +6,7 @@ import org.springframework.boot.test.context.SpringBootTest @SpringBootTest class KatchupserverApplicationTests { - @Test - fun contextLoads() { - } - + @Test + fun contextLoads() { + } }