λ¬Έμ " /> νμκ°μ
μ·¨μ λ²νΌμ ν΄λ¦νλ©΄ λ‘κ·ΈμΈ νμ΄μ§λ‘ μ΄λνλλ‘ κ΅¬ννμ§λ§, 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..