Wang Xiang's Blog
Friday, January 9, 2015
Maven Jetty PermGen space
before run "mvn jetty:run"
run this command in window env
set MAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=512m
or unix-like env
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m"
Friday, January 2, 2015
Spring MVC read properties in the class
This is sample code:
@Component( "emailService" )
public class EmailService {
@Value( "${mail.server.url}" )
private String url;
....
}
in the property file
mail.server.ur=http://abc/def
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)