It’s a frequently encountered pitfall when using hibernate, also has entity with properties type defined as java.util.Date. In short, although the entity’s property is defined as java.util.Date in entity class, but at runtime hibernate will never set it as java.util.Date, but java.sql.Timestamp!...
Wednesday, December 26, 2018
Saturday, December 22, 2018
Several useful cases for maven plugin “dependency”
The maven dependency plugin is very handy when trying to deal with following questions:What are the external artifacts involved in a maven project. (dependency:resolve)Find out how an artifact is introduced into a project. (dependency:tree)In a multi modules project, how these modules denpend on each...
Sunday, March 12, 2017
How to security a website in public key infrastructure (PKI) – Basic Concept
Let’s suppose you are a owner of a website, which has domain name www.shengw.com Here is the flow and it’s basic idea behind it. CA’s role is to make sure the public key, PK1, that client used to to decode message is really belongs to www.shengw.com. Furthermore to prove any message succefully...
Saturday, March 11, 2017
Use Fiddler to debug https request from java application
Fiddler is a very handy tool for http related debug. After starting, it automatically start to capture any http request go through system proxy. Also it by default listen to port 8888. For debug Java application, we stop the automatic capturing, only use the port 8888. This articlae is...
Use Fidder to debug http request from java application
Fiddler is a very handy tool for http related debug. After starting, it automatically start to capture any http request go through system proxy. Also it by default listen to port 8888. For debug Java application, we stop the automatic capturing, only use the port 8888. This articlae...
Spring RestTemplate useful hints
RestTemplate a widely used client tool from Spring framework. Here are some useful hints when using Spring RestTemplate. How to use basic authentication with RestTemplate? How to add arbitrary Http header, e.g.”Content-Type”, “Accept”, with RestTemplate? How to bypass(not solve) Https error “java.security.cert.CertificateException: No name matching <some url> found”? 1. Basic authentication...
Friday, August 19, 2016
Jersey in spring boot – Hello world example
Simply speaking: JAX-RS, namely Java API for RESTful Service, is from JSR 311 (obsolete) and JSR 339 (download here). Jersey is an reference implementation of JAX-RS. Spring boot sure can implement REST service without Jersey by using the controller way (@RestConroller). Also, jersey can be chosen...
Subscribe to:
Posts (Atom)
Powered by Blogger.
About The Author

View my complete profile