在我们的应用程序中,我们在XML文件中有bean配置.在XML文件中,我找到了这一行:
<jee:jndi-lookup id="myVar"
jndi-name="java:jboss/application/myVar"
default-value="${application.myVar:}"/>
Run Code Online (Sandbox Code Playgroud)
值包含${application.myVar:}在属性文件中.
结肠后application.myVar意味着什么?
我该怎么做才能使这个捆绑包工作SonataAdminBundle?我是OhGoogleMapFormTypeBundle基于README配置的.这是我的configureFormFields方法:
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->with("Map")
->add('latlng', new GoogleMapType())
->end()
;
}
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Please define a type for field `latlng` in `GM\AppBundle\Admin\PlaceAdmin`
Run Code Online (Sandbox Code Playgroud) 我想HttpSession在成功进行用户身份验证后添加对象.请不要建议解决方案,SavedRequestAwareAuthenticationSuccessHandler因为在这个应用程序由于某种原因应用程序正在进行原始请求.
public class AuthenticationSuccessListener implements ApplicationListener<InteractiveAuthenticationSuccessEvent> {
@Override
public void onApplicationEvent(InteractiveAuthenticationSuccessEvent e) {
//adding object to HttpSession
}
}
Run Code Online (Sandbox Code Playgroud)