Skip to content

Commit 82203e4

Browse files
committed
fix (Log): 모든 Log.info를 출력함
1 parent d36e113 commit 82203e4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/NextLevel/demo/user/controller/LoginController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.springframework.security.core.GrantedAuthority;
2121
import org.springframework.security.core.authority.SimpleGrantedAuthority;
2222
import org.springframework.security.core.context.SecurityContextHolder;
23+
import org.springframework.stereotype.Controller;
2324
import org.springframework.web.bind.annotation.GetMapping;
2425
import org.springframework.web.bind.annotation.ModelAttribute;
2526
import org.springframework.web.bind.annotation.PostMapping;
@@ -29,7 +30,7 @@
2930
import org.springframework.web.bind.annotation.RequestParam;
3031
import org.springframework.web.bind.annotation.RestController;
3132

32-
@RestController
33+
@Controller
3334
@RequestMapping("/public/login")
3435
@RequiredArgsConstructor
3536
public class LoginController {

src/main/resources/logback-spring.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
<root level="INFO">
3333
<appender-ref ref="CONSOLE" />
34+
<appender-ref ref="FILE1" />
3435
</root>
3536

3637
<logger name="NextLevel.demo.config" level="INFO" additivity="false">

0 commit comments

Comments
 (0)