web
开发常用知识积累
Rosalh
这个作者很懒,什么都没留下…
展开
-
Spring-boot运行出现“org.apache.ibatis.binding.BindingException Invalid bound statement (not found)”错误分析
Spring-boot运行出现“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)”错误的几种可能原因:总原因接口层(这里一般指的是dao层)与Mapper.xml文件映射绑定时出现问题,连接不上导致运行出错,截图如下:[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-3lfZscyK-1630079929674)(C:\Users\Allez\AppData\Roam原创 2021-08-28 00:00:21 · 689 阅读 · 0 评论 -
01 web开发中获取数据库链接的方法
1.首先写connection方法public static Connection getConnection(){ Connection connection = null;}2.定义一个properties来接受配置文件的键值对// 得到配置文件对象private static Properties properties = new Properties();3.编写一个静态块static { try { // 加载配置文件(输入流) I原创 2021-06-01 15:08:35 · 355 阅读 · 0 评论 -
spring-boot项目中使用controller向前台传送参数
spring-boot项目中使用controller向前台传送参数方法一:package com.zhang.demo.controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;//自动装配:原理!@RestControllerpublic class HelloControll原创 2021-03-17 23:09:26 · 276 阅读 · 0 评论 -
Spring-boot项目打包成jar包运行时出现“没有主清单属性”错误
Spring-boot项目打包成jar包运行时出现“没有主清单属性”错误问题截图如下:解决方法:1.首先在项目的pom.xml引入插件,具体操作是在pom.xml文件中的到之间添加如下代码:<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version原创 2021-03-17 14:53:35 · 7543 阅读 · 0 评论 -
Spring-boot项目打包时出现错误“Failed to execute goal……”
Spring-boot项目打包时出现错误“Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project demo: Input length = 1 -> [Help 1] [ERROR] ”问题截图如下:解决方法:把pom.xml文件中对应的<plugins> <plugin>原创 2021-03-16 21:17:34 · 1457 阅读 · 0 评论