嗨,大家好我用hibernate和spring创建了一个简单的web应用程序,我想实现一个包含crud操作的抽象类,但是我有这个错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientService' defined in class path resource [applicationContext.xml]:
Cannot resolve reference to bean 'clientDao' while setting bean property 'clientDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'clientDao' defined in class path resource [applicationContext.xml]:
Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.Class]:
Run Code Online (Sandbox Code Playgroud)
GenericDao
public interface GenericDao<T, ID extends Serializable> {
T save(T entity);
T update(T entity);
void delete(T entity);
T findById(ID id);
List<T> findAll();
void flush();
Run Code Online (Sandbox Code Playgroud)
}
GenericDaoImpl
@Transactional …Run Code Online (Sandbox Code Playgroud) 我在一个项目中使用了 Richfaces,对于某些需要,我必须在点击一个 div 后显示一个弹出窗口。如何使用 jQuery 打开和关闭 Richfaces 模式面板?
面板.jsp:
<rich:modalPanel id="controlWorkflowEditor" width="430"
trimOverlayedElements="false" resizeable="false" autosized="true">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="#{bpmnEditorLocal['choisirUnWorkflow']}">
</h:outputText>
</h:panelGroup>
</f:facet>
<h:form id="controlWorkflow">
<h:panelGroup id="controlGroupPanelId">
<table>
<!-- ######### WORKFLOW CONTROL EDITOR ############ -->
<tr>
<td><h:outputLabel value="#{bpmnEditorLocal['workflow']} *" />
</td>
</tr>
</table>
</h:panelGroup>
<br />
<br />
</h:form>
</rich:modalPanel>
Run Code Online (Sandbox Code Playgroud)