Blog: myshittycode


216 blogs updated: 60 min. ago
JEE Security: Disabling HTTP OPTIONS method
PROBLEM HTTP OPTIONS method is used to provide a list of methods that are supported by the web server. For example, the following shows both...
4
31-08-2017 23:56:34 myshittycode Advanced
JEE Security: Preventing Clickjacking Attacks
PROBLEM Clickjacking is an attack that tricks the users to perform unintended actions see OWASP's Testing for Clickjacking (OTG-CLIENT-009) ...
3
31-08-2017 17:19:06 myshittycode Advanced
Maven GPG Plugin: Prevent Signing Prompt or "gpg: signing failed: No such file or directory" Error
PROBLEM Given the following Maven settings.xml:- and the following Maven GPG Plugin configuration in pom.xml:- When running mvn clean deploy...
0
07-08-2017 22:28:40 myshittycode Advanced
Groovy: Copying Properties Between Two Beans
PROBLEM Given two beans There are several ways to copy properties from one bean to another:- The most rudimentary way is to "get" each prope...
3
23-06-2017 16:58:31 myshittycode Advanced
Spring MVC: Failed to convert value of type ‘java.lang.String' to required type ‘java.time.LocalDateTime'
PROBLEM Given the following controller When executing the web service call returns 400 Bad Request with the following error in the console l...
0
23-06-2017 01:10:39 myshittycode Advanced
MS SQL Server + Hibernate 5: Incorrect syntax near ‘@P0'
PROBLEM When upgrading to Hibernate 5, the following exception is thrown:- SOLUTION Change the MS SQL Server dialect from this to this Filed...
4
20-06-2017 18:22:03 myshittycode Advanced
tar: Exiting with failure status due to previous errors
PROBLEM When creating a compressed archive file:- the following error is thrown:- SOLUTION This error usually occurs due to permission issue...
3
12-06-2017 17:19:00 myshittycode Advanced
Docker: Handling Circular Dependency between Containers
PROBLEM Let's assume we are going to run 3 containers:- Jenkins Nexus Nginx Nginx is used to serve cleaner URLs through reverse proxies so t...
7
02-06-2017 04:50:46 myshittycode Advanced
Docker: Defining Custom Location for Named Volume
PROBLEM Let's assume we have the following docker-compose.yml: By the default, all Docker-managed named volumes are stored under the install...
6
01-06-2017 21:35:52 myshittycode Advanced
ES6 + Mocha + Sinon: Mocking Imported Dependency
PROBLEM Let's assume we have the following 2 files:- apis.js service.js Let's assume we want to test the logic in service.js without using n...
4
10-05-2017 23:14:05 myshittycode Advanced


© Jiri Pinkas | this project on GitHub | related: JavaVids | Maven Central Repository Search | Java školení | Top SQL Blogs | monitored using: sitemonitoring

Top Java Blogs is a Java blog aggregator (with English-written blogs only) focused on Java SE, Java EE, Spring Framework and Hibernate.