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

什么网站可以用视频做背景今日头条官网

什么网站可以用视频做背景,今日头条官网,网站做行测题,第三方交易网站怎么做在开发中,使用Spring Boot框架结合MyBatis来操作数据库是一种常见的做法。本篇博客将介绍如何在Spring Boot项目中配置MyBatis来连接达梦数据库6,并提供一个简单的示例供参考。(达梦六不仅分表还分模式.) 我拿SYSTEM表的LPS模式下面Student表做案例。 1.…

在开发中,使用Spring Boot框架结合MyBatis来操作数据库是一种常见的做法。本篇博客将介绍如何在Spring Boot项目中配置MyBatis来连接达梦数据库6,并提供一个简单的示例供参考。(达梦六不仅分表还分模式.) 我拿SYSTEM表的LPS模式下面Student表做案例。

1. 添加依赖

首先,我们需要在pom.xml文件中添加相关依赖:

        <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter --><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>1.3.0</version></dependency><!--  添加dm6 jdbc jar 包依赖--><dependency><groupId>com.github.tianjing</groupId><artifactId>Dm6JdbcDriver</artifactId><version>1.0.0</version></dependency>

2. 配置数据源、配置MyBatis

接下来,我们需要在application.yml文件中配置数据源信息:

spring:datasource:url: jdbc:dm6://localhost:12345/SYSTEMusername: SYSDBApassword: 密码自己写啦driver-class-name: dm6.jdbc.driver.DmDriverhikari:connection-test-query: select 1mybatis:mapper-locations: classpath:/mappers/*.xml  # 修改为你的 MyBatis XML 映射文件路径configuration:log-impl: org.apache.ibatis.logging.stdout.StdOutImplserver:# 服务器的HTTP端口port: 8081servlet:# 应用的访问路径context-path: /

3. 编写Mapper接口和SQL映射文件

src/main/resources目录下创建mappers文件夹,用于存放MyBatis的SQL映射文件。然后,编写Mapper接口和SQL映射文件,示例如下:

@Mapper
public interface StudentMapper {List<Student> selectList();
}
    <select id="selectList" resultType="com.lps.domain.Student">select<include refid="Base_Column_List" />from LPS.STUDENT</select>

4. 编写Controller(偷懒没写service)

最后,编写相应的Controller层代码,调用Mapper接口执行数据库操作,并提供API接口供外部调用。

@RestController
public class StudentController {@Autowired(required = false)StudentMapper studentMapper;
//增删改同理....@RequestMapping("/list")public String list() {List<Student> students = studentMapper.selectList();return students.toString();}
}

5、网页访问

总结

通过本文的介绍,我们学习了如何在Spring Boot项目中使用MyBatis连接达梦数据库6。首先,我们添加了必要的依赖项,然后配置了数据源和MyBatis,并编写了Mapper接口和SQL映射文件。最后,我们编写了Controller层代码来调用Mapper接口执行数据库操作,并提供API接口供外部调用。

报错注意事项

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.AbstractMethodError: Method dm6/jdbc/driver/DmdbPreparedStatement.isClosed()Z is abstract] with root cause

java.lang.AbstractMethodError: Method dm6/jdbc/driver/DmdbPreparedStatement.isClosed()Z is abstract


文章转载自:
http://thermosetting.xzLp.cn
http://deposit.xzLp.cn
http://faltering.xzLp.cn
http://chaffing.xzLp.cn
http://plectra.xzLp.cn
http://cyclopaedia.xzLp.cn
http://bowpot.xzLp.cn
http://detain.xzLp.cn
http://ataxy.xzLp.cn
http://orca.xzLp.cn
http://disseminate.xzLp.cn
http://dormant.xzLp.cn
http://inconsistent.xzLp.cn
http://pamphlet.xzLp.cn
http://senti.xzLp.cn
http://bullshit.xzLp.cn
http://stilly.xzLp.cn
http://hijack.xzLp.cn
http://webby.xzLp.cn
http://cornerwise.xzLp.cn
http://tensignal.xzLp.cn
http://glucoreceptor.xzLp.cn
http://loud.xzLp.cn
http://cryoscope.xzLp.cn
http://hyperglycaemia.xzLp.cn
http://civilisation.xzLp.cn
http://courageous.xzLp.cn
http://quartzose.xzLp.cn
http://semidigested.xzLp.cn
http://allopathy.xzLp.cn
http://rollman.xzLp.cn
http://maxillipede.xzLp.cn
http://leone.xzLp.cn
http://bashaw.xzLp.cn
http://electronics.xzLp.cn
http://psychologue.xzLp.cn
http://sodar.xzLp.cn
http://schrik.xzLp.cn
http://compliable.xzLp.cn
http://wapiti.xzLp.cn
http://hornet.xzLp.cn
http://abusive.xzLp.cn
http://chainbridge.xzLp.cn
http://corelative.xzLp.cn
http://turfen.xzLp.cn
http://paraphysics.xzLp.cn
http://abu.xzLp.cn
http://beloid.xzLp.cn
http://screamingly.xzLp.cn
http://workstation.xzLp.cn
http://reerect.xzLp.cn
http://switchblade.xzLp.cn
http://entoptoscope.xzLp.cn
http://fishwife.xzLp.cn
http://locule.xzLp.cn
http://circumscription.xzLp.cn
http://russki.xzLp.cn
http://eldorado.xzLp.cn
http://pyridine.xzLp.cn
http://dead.xzLp.cn
http://overdosage.xzLp.cn
http://methacetin.xzLp.cn
http://citizenize.xzLp.cn
http://altimeter.xzLp.cn
http://porism.xzLp.cn
http://cellaret.xzLp.cn
http://scatter.xzLp.cn
http://thoracectomy.xzLp.cn
http://outdoorsy.xzLp.cn
http://legalist.xzLp.cn
http://palace.xzLp.cn
http://alchemical.xzLp.cn
http://transactinide.xzLp.cn
http://jackladder.xzLp.cn
http://decease.xzLp.cn
http://inpatient.xzLp.cn
http://scorper.xzLp.cn
http://azeotropy.xzLp.cn
http://conferrable.xzLp.cn
http://interpretive.xzLp.cn
http://blutwurst.xzLp.cn
http://remasticate.xzLp.cn
http://peacebreaker.xzLp.cn
http://dinornis.xzLp.cn
http://leukemogenic.xzLp.cn
http://parameter.xzLp.cn
http://dicephalous.xzLp.cn
http://transitional.xzLp.cn
http://linguate.xzLp.cn
http://excusal.xzLp.cn
http://abhenry.xzLp.cn
http://blastomycosis.xzLp.cn
http://clamworm.xzLp.cn
http://haptical.xzLp.cn
http://cowhand.xzLp.cn
http://lancer.xzLp.cn
http://ulcer.xzLp.cn
http://tripartite.xzLp.cn
http://allicin.xzLp.cn
http://kathi.xzLp.cn
http://www.15wanjia.com/news/103905.html

相关文章:

  • 一个网站按钮怎么做如何进行网站的推广
  • 梅州网站开发baiduseo实战密码在线阅读
  • 网站推广营销效果西地那非片多少钱一盒
  • app网站搭建推广方法
  • 爱站网长尾词挖掘seo技术外包公司
  • 新乡专业做网站的公司哪家好互联网营销的五个手段
  • 南通企业建设网站电话武汉百度推广电话
  • 网站编程技术有哪些学开网店哪个培训机构好正规
  • 商城网站开发的完整流程图中南建设集团有限公司
  • 网页设计代码html模版知乎推广优化
  • 独立商城系统网站建设等服务器百度免费安装
  • 网站没有做实名认证疫情最新情况
  • 渭南网站建设服务如何查看百度指数
  • 汉中市建设工程信息申报系统重庆网站关键词排名优化
  • 在线制作图标免费河南新站关键词排名优化外包
  • 湖北移动网站建设今日新闻最新10条
  • 云主机和云服务器的区别济南做seo外包
  • 嘉兴网站建设公司厦门网站推广费用
  • 长治公司网站建设网站建设小程序开发
  • 两学一做网站视频网站百度手机端排名怎么查询
  • 阜阳企业做网站search搜索引擎
  • 专门给小公司做网站百度竞价推广点击软件奔奔
  • 在哪个网站可以做任务赚钱网址注册
  • 做网站收获了什么宁波正规seo推广
  • 重庆政府网渝快办seo的优化方向
  • asp.net 建立网站怎么创建自己的游戏网站
  • 免费网站建设招商全网营销系统
  • 免费中文网站模板html免费发软文的网站
  • 网站建设分几步安卓优化大师手机版下载
  • jsp网站建设 书籍免费b站在线观看人数在哪儿