1.单纯wildfly没有问题,但是使用idea的插件进行发布时,发布目录下有文件,但是访问接口出现405,跟了一下代码报错在
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
### The error may exist in VFS resource ["/D:/JAVA/wildfly-12.0.0.Final/bin/content/pi.war/WEB-INF/classes/com/dji/mis/bean/mapper/ReconciliationMapper.xml"]
### The error may involve com.dji.mis.bean.model.Reconciliation.getReconciliationTaskCount
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
也许是因为有jar包没有发布成功吧?
待研究
2.使用idea编译项目及打包时,缺失meta-inf文件夹及下面的maven文件夹。手动在structure,artifacts中生成文件,可是发布后会报错。
最终使用maven编译项目,手动启动,远程调试就可以。配置远程调试选择remote。
wildfly12中,需要改standalone.bat中的modle为debug,还要改standalone.conf中的java_opt配置