This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[6/9/18 2:11:12:631 SGT] 00006082 SibMessage W [:] CWSJY0003W: JMSCC3036: An exception has been delivered to the connection's exception listener: ' | |
Message : com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ1107: A problem with this connection has occurred. | |
An error has occurred with the WebSphere MQ JMS connection. | |
Use the linked exception to determine the cause of this error. | |
Class : class com.ibm.msg.client.jms.DetailedJMSException | |
Stack : com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:580) | |
: com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:216) | |
: com.ibm.msg.client.wmq.internal.WMQConnection.consumer(WMQConnection.java:795) | |
: com.ibm.mq.jmqi.remote.api.RemoteHconn.callEventHandler(RemoteHconn.java:2610) | |
: com.ibm.mq.jmqi.remote.api.RemoteHconn.driveEve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javabycode.controller; | |
import com.javabycode.model.Fruit; | |
import com.javabycode.service.FruitService; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.ResponseEntity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javabycode.security; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer; | |
import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter; | |
import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer; | |
import org.springframework.security.oauth2.provider.error.OAuth2AccessDeniedHandler; | |
@Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javabycode.security; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.security.authentication.AuthenticationManager; | |
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; | |
import org.springframework.security.config.annotation.web.builders.HttpSecurity; | |
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; | |
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javabycode.security; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.security.access.expression.method.MethodSecurityExpressionHandler; | |
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; | |
import org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration; | |
import org.springframework.security.oauth2.provider.expression.OAuth2MethodSecurityExpressionHandler; | |
@Configuration | |
@EnableGlobalMethodSecurity(prePostEnabled = true, proxyTargetClass = true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javabycode.config; | |
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; | |
import com.javabycode.filter.CORSFilter; | |
import javax.servlet.Filter; | |
public class ServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javabycode.config; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.servlet.config.annotation.EnableWebMvc; | |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; | |
@EnableWebMvc | |
@Configuration | |
@ComponentScan("com.javabycode") |