Groovy
Java With Flair
No @XmlRootElement generated by JAXB
daniel Wed, 01/18/2017 - 4:58pm
- Read more about No @XmlRootElement generated by JAXB
- Log in to post comments
Dynamically scheduling jobs with Spring
daniel Fri, 08/12/2016 - 2:09pm
Stackoverflow research that may be useful:
- Read more about Dynamically scheduling jobs with Spring
- Log in to post comments
When to use different types of Grails/Gorm Querying options
daniel Fri, 08/12/2016 - 2:04pm
Transactions and Grails
daniel Fri, 08/12/2016 - 2:01pm
An interesting article from June 2010 by Cyril Picat about Transactions.
- Read more about Transactions and Grails
- Log in to post comments
Spock hidden gems
daniel Fri, 08/12/2016 - 2:00pm
An interesting git repo of Spock hidden gems. A talk given my Marcin Erdmann at a London GGUG
- Read more about Spock hidden gems
- Log in to post comments
Grails Transactional vs Spring Transactional
daniel Fri, 07/01/2016 - 9:24am
There's a difference between the two annotations which is nicely explained on stackoverflow
- Read more about Grails Transactional vs Spring Transactional
- Log in to post comments
Odd Java
daniel Fri, 04/01/2016 - 12:21pm
I was digging around trying to figure out some strange error with a saml integration when I came across the verifyAudience Method of the spring-security-saml/core/src/main/java/org/springframework/security/saml/websso/WebSSOProfileConsumerImpl.java
I had never noticed this particular usage of Java in the wild with a loop inside a loop with a continue statement.
I've created an example in groovy because I'm lazy:
List restrictions = [1,2,3,4,5]
List selections = [3,5]
audience:
for(int a in restrictions){
for(int b in selections){
if(a==b){
println "skip"
continue audience
}
println "$a -- $b"
}
}
Here is the Output:
1 -- 3
1 -- 5
2 -- 3
2 -- 5
skip
4 -- 3
4 -- 5
5 -- 3
skip
- Read more about Odd Java
- Log in to post comments
Remove an alias to a java cert store with keytool
daniel Wed, 08/26/2015 - 9:09am
- Read more about Remove an alias to a java cert store with keytool
- Log in to post comments
Compress and Rotate logs for Grails
daniel Thu, 07/16/2015 - 10:21pm
- Read more about Compress and Rotate logs for Grails
- Log in to post comments
