This file contains hidden or 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
https://github.com/spring-guides |
This file contains hidden or 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
pom.xml : | |
<spring-framework.version>4.1.1.RELEASE</spring-framework.version> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-web</artifactId> | |
<version>${spring-framework.version}</version> | |
</dependency> |
This file contains hidden or 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
import java.util.ArrayList; | |
public class Triangular { | |
public static int triangular(int totalDot) { | |
System.out.print("\n"); | |
for (int i = 0; i < totalDot; i++) { | |
for (int j = 1; j <= totalDot - i; j++) { | |
System.out.print("*"); |
This file contains hidden or 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
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
public class Loop { | |
public static void main(String[] args) { | |
List<String> elementList = new ArrayList<String>(); | |
for (int i = 0; i < 257; i++) { |
This file contains hidden or 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
http://software.endy.muhardin.com/java/development-stack-2014/ | |
Quote: | |
Kenapa tidak pakai EJB? Kan sudah tersedia di application server JEE sehingga tidak perlu tambahan JAR? | |
Dengan Spring Framework, aplikasi bisa dideploy di application server mana saja. Bisa Tomcat, Jetty, Heroku, Google App Engine, dan sebagainya. Requirement yang dibutuhkan hanyalah Java VM saja. | |
ans: | |
Nah ini, Kenapa dia bilang seolah-olah EJB gak bisa dideploy dimana aja? EJB bisa jalan di Jetty, Tomcat, asalkan container EJB-nya juga bisa di-setup untuk jalan di minimal web server seperti Tomcat. | |
EJB sendiri naturenya close to metal di sisi J2EE, malah gak butuh HTTP server. Ane pake console udah bisa bikin EJB yang bisa RMI. |
This file contains hidden or 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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.csl.cms.util.email; | |
import java.io.File; | |
import java.util.Map; | |
import org.springframework.core.io.InputStreamSource; |
This file contains hidden or 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
Helvetica Neue - Apple's way | |
Roboto - Android's way | |
Calibri - Microsoft's way | |
Ubuntu Font - Ubuntu's way | |
lucida grande atau nunito | |
open sans, alternatif lain bisa pake lato | |
font lobster juga bagus itu untuk fancy things | |
pacifico |
This file contains hidden or 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 whatever; // don't place package name! */ | |
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
/* Name of the class has to be "Main" only if the class is public. */ | |
class SimpleBitwiseEdit | |
{ | |
public static void main (String[] args) throws java.lang.Exception |
This file contains hidden or 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
http://stackoverflow.com/questions/11841156/preauthorize-annotation-not-working-spring-security | |
http://stackoverflow.com/questions/16164615/preauthorize-with-haspermission-executes-code-twice | |
http://stackoverflow.com/questions/15360965/preauthorize-does-not-work-with-method-security-rules-and-method-parameters | |
http://java.dzone.com/articles/writing-your-spring-security | |
http://www.borislam.com/2012/08/writing-your-spring-security-expression.html | |
http://www.borislam.com/2012/08/writing-your-spring-security-expression_9.html | |
http://www.borislam.com/2012/08/writing-your-spring-security-expression_17.html | |
http://blog.solidcraft.eu/2011/03/spring-security-by-example-securing.html | |
http://howtodoinjava.com/2013/04/18/spring-3-method-level-security-example-using-preauthorize-and-secured/ |
This file contains hidden or 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.mycompany.examplejsonmapper.entity; | |
/** | |
* | |
* @author asn | |
*/ | |
public class DikUmum { | |