Error: javax.persistence.JoinColumn.foreignKey()Ljavax/persistence/ForeignKey with Spring controller

后端 未结 4 494
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 00:21

I have a simple two table application written in Spring MVC and which uses Hibernate. Everything works perfectly well but if I try to unit test one of the controllers, I get

4条回答
  •  被撕碎了的回忆
    2020-12-07 01:01

    Another workaround can be found here: https://issues.jboss.org/browse/WFCORE-209

    workaround 1 update the javaee/api/main.module.xml as followed:

    
    
    

    though this is non-portable.

    workaround 2

    update jboss-deployment-structure.xml as followed:

    
    
        
            
                
            
            
                
                
                
                
                
            
            
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
    
                
                
                
            
        
    
    

    this is fully portable

提交回复
热议问题