当前位置: 首页 > news >正文

易语言可以做网站管理系统吗win7 iis添加网站

易语言可以做网站管理系统吗,win7 iis添加网站,学校网站建设经验介绍,淄博手机网站建设费用当某些sql因为不知名原因堵塞时#xff0c;为了不影响后台服务运行#xff0c;想要给sql增加执行时间限制#xff0c;超时后就抛异常#xff0c;保证后台线程不会因为sql堵塞而堵塞。 方法一 yml全局配置#xff1a;单数据源可以#xff0c;多数据源时会失效 方法二 j…当某些sql因为不知名原因堵塞时为了不影响后台服务运行想要给sql增加执行时间限制超时后就抛异常保证后台线程不会因为sql堵塞而堵塞。 方法一 yml全局配置单数据源可以多数据源时会失效 方法二 java配置类配置成功抛出超时异常。 import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder; import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSessionFactoryBean; import org.mybatis.spring.SqlSessionTemplate; import org.mybatis.spring.annotation.MapperScan; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.core.io.support.PathMatchingResourcePatternResolver; import org.springframework.jdbc.datasource.DataSourceTransactionManager;import javax.sql.DataSource;Configuration MapperScan(basePackages top.oldmoon.bill.mapper, sqlSessionFactoryRef sqlSessionFactory) public class DBConfiguration {PrimaryBean(name dataSource)ConfigurationProperties(prefix spring.datasource)public DataSource gfDataSource() {DruidDataSource dataSource DruidDataSourceBuilder.create().build();return dataSource;}PrimaryBean(name sqlSessionFactory)public SqlSessionFactory gfSqlSessionFactory(Qualifier(dataSource) DataSource dataSource) throws Exception {SqlSessionFactoryBean factoryBean new SqlSessionFactoryBean();factoryBean.setDataSource(dataSource);factoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources(classpath:mybatis/*.xml));org.apache.ibatis.session.Configuration configuration new org.apache.ibatis.session.Configuration();configuration.setDefaultStatementTimeout(1); // 设置sql执行超时时间秒factoryBean.setConfiguration(configuration);SqlSessionFactory sqlSessionFactory factoryBean.getObject();return sqlSessionFactory;}PrimaryBean(name transactionManager)public DataSourceTransactionManager gfTransactionManager(Qualifier(dataSource) DataSource dataSource) {return new DataSourceTransactionManager(dataSource);}PrimaryBean(name sqlSessionTemplate)public SqlSessionTemplate gfSqlSessionTemplate(Qualifier(sqlSessionFactory) SqlSessionFactory sqlSessionFactory) throws Exception {SqlSessionTemplate sqlSessionTemplate new SqlSessionTemplate(sqlSessionFactory);return sqlSessionTemplate;} }Fri Mar 12 15:56:31 CST 2022--方法开始执行 2022-03-12 15:56:38.508 ERROR 24484 --- [nio-8111-exec-3] o.api.advice.ExceptionHandlerAdvice : 未知异常 ### Error querying database. Cause: com.mysql.cj.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request ### The error may exist in file [E:\space-persional\git\oldmoon-frame\oldmoon-app-bill\out\production\resources\mybatis\UserMapper.xml] ### The error may involve defaultParameterMap ### The error occurred while setting parameters ### SQL: select * from V_BGD_PWGM_PB_21 ### Cause: com.mysql.cj.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request ; Statement cancelled due to timeout or client request; nested exception is com.mysql.cj.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request org.springframework.dao.QueryTimeoutException: {resultCode: 2,resultMsg: 未知异常请联系管理员,token: null,resultInfo: \r\n### Error querying database. Cause: com.mysql.cj.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request\r\n### The error may exist in file ................ }
http://www.zqtcl.cn/news/71862/

相关文章:

  • 全省建设信息网站网站关键词都没有了
  • 怎样做网站seo优化网站建设教程培训
  • dede网站模板怎么改上海人才网最新招聘2021
  • 中企做一个网站多少钱报价网站系统
  • 网站建设公司怎么发展广州地铁运营时间
  • 盐城网站开发招代理怎么搭建网站
  • 怎么把自己做的网站放到百度上百度关键词搜索热度
  • 网站设计建设定制凡科建设网站别人能进去么
  • 个人博客网站页面百度软件中心
  • 素材网站 模板网页设计实训报告范例
  • 制作个人博客网站做图模板网站有哪些内容
  • 最好的wordpress网站如何高效率的建设网站
  • 做好中心网站建设工作做特卖的网站有哪些
  • 企业门户网站开发费用怎么利用互联网平台赚钱
  • 网站网页设计公司有哪些天津网站建设设计开发公司
  • 网站被加入js广告做图哪个网站素材多
  • 安徽省住房城乡建设厅网站公示个人网站建设规划案例
  • 长春市建设厅网站asp网站后台管理系统源码
  • h5建站模板电子商务网站建设与管理a
  • 企业宣传软文淘宝客网站怎么做seo
  • 武清网站开发tjniu微信企业邮箱
  • ps工具设计网站厦门网站建设人才
  • 3g电影网站排行榜沈阳做网站最好的公司
  • 楚雄建网站建立简单网站
  • 实业有限公司网站怎么做上海排名seo公司
  • 外贸网站关键词优化食品网站建设的目的
  • 沈阳网站建设索王道下拉万网可以做网站吗
  • ftp修改网站红衫中国网站建设
  • 开发的网站wordpress 4.0 中文版
  • 手机怎么创建网站怎么做网站才能吸引人