Posts

Showing posts from 2016

CAP theorem proof

https://www.youtube.com/watch?v=Jw1iFr4v58M 

Spring Boot start up Maven Failure

Sometimes we get weird error that Spring cannot read manifest file from .m2 location. If you browse, you will get the jar and find the mf file. To resolve the issue do the following From Eclipse/STS - right click on the project and choose Maven build. In target type dependency:purge-local-repository -DreResolve=false and run. or open command prompt/bash shell, go to the project directory and run the following maven command to delete the cache mvn dependency:purge-local-repository -DreResolve=false

Spring Security Hiccups

In any web-application some pages are secured (only logged in and authorized users with proper role can access) and some pages are not secured such as login or landing page. But sometimes we need a mix-n-match, such as some information user can view without proper access(login) but they need rights(such as login) to perform additional activities. here is an example - in amazon or any retail site you can view products, but you need to login to buy the product - the buy now button will ask for your credentials.  Images, css , Javascript dont require security < sec:http pattern = "/css/**" security = "none" /> < sec:http pattern = "/gwt/**" security = "none" /> < sec:http pattern = "/images/**" security = "none" /> < sec:http pattern = "/img/**" security = "none" /> < sec:http pattern = "/scripts/**" security = "none" /> Logon...