0
I이 엔드 포인트 클래스 :봄 웹 서비스 1.5.2 파일 (백 로그, 봄 부팅 1.5.2) 로그에
@Endpoint
public class GetCustomerEndpoint {
public static final Logger log = LoggerFactory.getLogger(GetCustomerEndpoint .class);
@Transactional(value = "transactionManager", readOnly = true)
@PayloadRoot(namespace = WebServiceConfig.NAMESPACE_URI, localPart = "getCustomerRequest")
@ResponsePayload
public GetCustomerResponse getCustomer(@RequestPayload GetCustomerRequest serviceRequest)
throws ServerFaultException, ClientFaultException, Exception {
throw new Exception("Exception to log file");
}
그러나 예외가 클라이언트 측에 표시가 발생하는 경우 :
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring xml:lang="en">Exception to log file</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
로그 파일 또는 콘솔이 비어 있습니다. 장소 및 예외 스택 추적에서 모든 예외를보고 싶습니다. 내 로그 설정에서
:
logging.level.<package>=INFO
어디 :
logging.level.org.springframework=INFO
다른 로그 구성을 GetCustomerEndpoint의 패키지 logging.level에 추가해보십시오. = 정보 –
고마워 ....! – user2625402