π™±πšŠπšŒπš”πšŽπš—πš

문제  " /> νšŒμ›κ°€μž… μ·¨μ†Œ λ²„νŠΌμ„ ν΄λ¦­ν•˜λ©΄ 둜그인 νŽ˜μ΄μ§€λ‘œ μ΄λ™ν•˜λ„λ‘ κ΅¬ν˜„ν–ˆμ§€λ§Œ, 404였λ₯˜κ°€ λ°œμƒν–ˆλ‹€ window.location = '/auth/login.do' 둜, μ ˆλŒ€ 경둜λ₯Ό μ‚¬μš©ν•˜κ³  μžˆμ—ˆλ‹€. μ‹€μ œ μ›ν•˜λŠ” κ²½λ‘œλŠ” 'http://location:8080/MyApp/auth/login.do' μ˜€μ§€λ§Œ, 'http://localhost:8080/auth/login.do'둜 잘λͺ» 맀핑이 되고 μžˆμ—ˆλ‹€.   ν•΄κ²° 방법 : μ‚¬μš©ν•˜κΈ°JSP의 νƒœκ·Έλ₯Ό μ‚¬μš©ν•˜λ©΄ μžλ™μœΌλ‘œ μ»¨ν…μŠ€νŠΈ 경둜(Context Path)λ₯Ό ν¬ν•¨ν•˜μ—¬ μ˜¬λ°”λ₯Έ 경둜둜 이동할 수 μžˆλ‹€.  '" value="" /> μœ„ μ½”λ“œλŠ” 싀행될 λ•Œ window.location = '/MyApp/auth/login.do'둜 λ³€ν™˜..
문제 ν…ŒμŠ€νŠΈ 쀑 μ‚¬μ΄μ¦ˆκ°€ 0인 νŒŒμΌμ„ μ €μž₯해보렀고 ν–ˆλŠ”λ° μ €μž₯이 μ œλŒ€λ‘œ λ˜μ§€ μ•Šμ•˜λ‹€ private Content createContent(MultipartFile file, String description) throws Exception { if (file != null && !file.isEmpty()) { // μ €μž₯ } return null;} μ΄λŸ° μ‹μœΌλ‘œ file이 null이 아닐 λ•Œ + λΉ„μ–΄μžˆμ§€ μ•Šλ‹€λ©΄~ 을 κΈ°μ€€μœΌλ‘œ νŒŒμΌμ„ μ €μž₯ν–ˆμ—ˆλ‹€. 파일 μ‚¬μ΄μ¦ˆκ°€ 0이면 isEmpty와 λ™μΌν•˜κ²Œ νŒλ‹¨λ˜μ–΄ λΉ„μ–΄ μžˆλŠ” κ²ƒμœΌλ‘œ μ²˜λ¦¬λ˜μ—ˆκ³ , κ·Έ κ²°κ³Ό μ €μž₯이 λ˜μ§€ μ•Šμ•˜λ‹€.      ν•΄κ²°private Content createContent(MultipartFile file, String description) thro..