oracle adf 入门

入门必踩坑

坑1:jdeveloper里没有mysql的driver,在maven库里引入了,connection里连接正常,但是deploy出错,can't load driver。即使在项目和tools里引入都没用

最后是根据Stack Overflow里的建议  把jar放入jdeveloper的一个lib里

https://stackoverflow.com/questions/11118183/cannot-load-driver-class-com-microsoft-sqlserver-jdbc-sqlserverdriver

Put the slqjdbc4.jar or sqljdbc.jar library file in lib folder under DefaultDomain in your IntegratedWLS installation path, if running in in IDE.
C:Documents and SettingsuserApplication DataJDevelopersystem11.1.1.3.37.56.60DefaultDomainlib - 

or

C:UsersuserAppDataRoamingJDevelopersystem11.1.1.3.37.56.60DefaultDomainlib

坑2好不容易可以加载了,但是还是没有连通,报了一个ssl的问题,百度+谷歌需要在连接里加上useSSL=false

吐槽一句,其实改成enter custon JDBC URL,就很容易解决,但是一开始很SB的想找出jdeveloper的数据库连接配置,加上useSSL的设置,浪费了一些时间

jdbc:mysql://localhost:3306/cxs?useUnicode=true&characterEncoding=utf8&useSSL=false

 

坑3:做webpotral开发的话,JTA的事务超时需要设大

原文地址:https://www.cnblogs.com/heroinss/p/12759436.html