我正在使用JavaFx-2。我需要在JavaFx中查看pdf文件。我在谷歌中搜索并找到了下面的链接。 http://www.idrsolutions.com/jpedalfx-viewer/
在此链接中,我已经创建了其中提到的所有内容,并且我可以PdfHelpPanel在调色板中看到。当我将此组件拖动到时,PDFHelpFrame我可以看到该fileLocations属性。在这里我需要给出文件位置,但我不知道如何给出我的pdf文件的位置。当我单击文件位置属性中的浏览时,它会要求提供自定义代码、默认编辑器、现有组件的值。我需要选择哪一个。我完全被http://netbeans.dzone.com/articles/how-create-import-a-javabean-c-0震惊了
上一张的第二张图片。如果有人已经这样做了,你能帮助我吗?
我有两个数据库A,BI在数据库A中有一个名为asample的表,在数据库B中有一个bsample表.现在我想将数据从B数据库的bsample表传输到A数据库的asample表.为此,我必须在persistence.xml文件中使用两个持久性单元.我正在使用JPA,Spring.我是jpa的新手.任何人都可以告诉我如何实现这一目标.
如果我使用下面提到的代码我得到这个例外:
ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/classes/META-INF/spring-context/dao-DB1.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mediationEntityManagerFactory' defined in ServletContext resource [/WEB-INF/classes/META-INF/spring-context/dao-DB2.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: DB2] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:710)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:410)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127) …Run Code Online (Sandbox Code Playgroud)