public static PersistenceGuiceContext useJRest(String... scanPaths) {
//注册缺省的日期转换器(用于BeanUtilsBean)
new DatePatternConverter().addDefaultDateConverter();
//打开JRest的支持
PersistenceGuiceContext.getInstance().addModuleProvider(
new JRest4GuiceModuleProvider(scanPaths)).addModuleProvider(
new JndiGuiceModuleProvider(scanPaths));
return PersistenceGuiceContext.getInstance();
}