Framework/🍃 Spring
-
🔥 Problem 👉 org.springframework.web.HttpMediaTypeNotSupportedException org.springframework.web.HttpMediaTypeNotSupportedException Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type 'multipart/form-data;boundary=-------------------------- 407531386842205423562378;charset=UTF-8' is not supported] ☔ Cause of error 👉 I'll pretend I didn't see your mistake :) Maybe you..
[Solved] org.springframework.web.HttpMediaTypeNotSupportedException🔥 Problem 👉 org.springframework.web.HttpMediaTypeNotSupportedException org.springframework.web.HttpMediaTypeNotSupportedException Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type 'multipart/form-data;boundary=-------------------------- 407531386842205423562378;charset=UTF-8' is not supported] ☔ Cause of error 👉 I'll pretend I didn't see your mistake :) Maybe you..
2024.01.25 -
🔥 Problem 👉 SEO의 강화를 위해 404 에러가 발생하였을 경우, 404 페이지로 이동시킬 필요가 있습니다. 🧙 Solution 👉 ErrorPageController를 하나 제작합시다. 아래의 소스코드를 참고하여 작업하시면 됩니다. package com.ointex.noticeboard.controller; import org.springframework.boot.web.servlet.error.ErrorController; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping;..
[Spring boot] 에러 혹은 404 페이지로 이동시키는 방법🔥 Problem 👉 SEO의 강화를 위해 404 에러가 발생하였을 경우, 404 페이지로 이동시킬 필요가 있습니다. 🧙 Solution 👉 ErrorPageController를 하나 제작합시다. 아래의 소스코드를 참고하여 작업하시면 됩니다. package com.ointex.noticeboard.controller; import org.springframework.boot.web.servlet.error.ErrorController; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping;..
2024.01.16 -
🔥 Problem 👉 nested exception is java.lang.IllegalStateException: Can't configure antMatchers after anyRequest 🧙 Solution 👉 .anyRequest().authenticated() to be used only once! Please check if you used them once. http .httpBasic() .and() .authorizeRequests() .antMatchers("/test/**").permitAll() .and() .authorizeRequests() .antMatchers("/admin/**").hasAnyRole("ADMIN") .anyRequest().authenticated() ..
[Solved] Can't configure antMatchers after anyRequest🔥 Problem 👉 nested exception is java.lang.IllegalStateException: Can't configure antMatchers after anyRequest 🧙 Solution 👉 .anyRequest().authenticated() to be used only once! Please check if you used them once. http .httpBasic() .and() .authorizeRequests() .antMatchers("/test/**").permitAll() .and() .authorizeRequests() .antMatchers("/admin/**").hasAnyRole("ADMIN") .anyRequest().authenticated() ..
2024.01.12 -
🔥 Problem 👉 javax.xml.bind.JAXBException org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationExc..
[Solved] Implementation of JAXB-API has not been found on module path or classpath🔥 Problem 👉 javax.xml.bind.JAXBException org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationExc..
2024.01.12 -
🔥 Problem 👉 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource ....blah blah SingleTableEntityPersister org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaCon..
[Solved] Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister🔥 Problem 👉 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource ....blah blah SingleTableEntityPersister org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaCon..
2024.01.12 -
🔥 Problem 👉 Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException 🔎 info) JAXB is a Java API that displays Java classes in XML. ☔ Cause of error 👉 You cannot use the JAXB API in Java 9 and later versions, as it has been removed (deprecated). 🧙 Solution 👉 Please write the code below in pom.xml javax.xml.bind jaxb-api 2.3.0 👉 If you are ..
[Solved] java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException🔥 Problem 👉 Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException 🔎 info) JAXB is a Java API that displays Java classes in XML. ☔ Cause of error 👉 You cannot use the JAXB API in Java 9 and later versions, as it has been removed (deprecated). 🧙 Solution 👉 Please write the code below in pom.xml javax.xml.bind jaxb-api 2.3.0 👉 If you are ..
2024.01.12