• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






天生自然

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  吴裕雄--天生自然Spring和SpringBoot开发实战学习笔记

上一页 1 ··· 17 18 19 20 21 22 23 24 25 26 下一页

 
集成MyBatis
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2022-02-06 01:56 吴裕雄
解决:com.mysql.jdbc.exceptions.jdbc4.CommunicationsExcepti
摘要:这可能是MySQL连接的jar包版本不对。 需要加入version。 正确配置如下: <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.28</versio 阅读全文
posted @ 2022-02-06 01:37 吴裕雄
解决:Could not find SQL statement to include with refid
摘要:请检查xml文件的SQL标签和resultMap标签内容是否写正确了。 下面是正确的写法样例。 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "h 阅读全文
posted @ 2022-02-06 01:03 吴裕雄
集成Swagger文档
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2022-02-05 22:26 吴裕雄
解决:Could not initialize class org.hibernate.validator.internal.engine.valueextraction.ValueExtractorManager
摘要:这是由于spring包版本冲突导致的。 打开项目的maven包,移除下面截图的jar包,然后再更新项目,重新运行就可以了。 阅读全文
posted @ 2022-02-05 15:17 吴裕雄
解决myeclipse org.openjfx:javafx.base:jar:11.0.0-SNAPSHOT报错
摘要:修改前: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.4.RELEASE</version> </paren 阅读全文
posted @ 2022-02-05 14:38 吴裕雄
IOC
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2021-11-02 18:47 吴裕雄
处理异常:The import org.apache.log4j cannot be resolved
摘要:pom.xml增加下面面这个 <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> 阅读全文
posted @ 2021-11-02 18:35 吴裕雄
chaptertow
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2021-11-02 17:46 吴裕雄
Chapter1Main
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2021-11-01 15:51 吴裕雄
吴裕雄--天生自然--SPRING BOOT--解决:Lifecycle mapping "org.eclipse.m2e.jdt.JarLifecycleMapping" is not available. To enable full functionality, install the lifecycle
摘要:解决方法 : maven update 后还是不行,重新启动eclipse再maven update 就可以 了。 阅读全文
posted @ 2021-10-08 20:55 吴裕雄
吴裕雄--天生自然--SPRING BOOT--电子商务平台的设计与实现(THYMELEAF+MYBATIS)-- 前台页面代码实现部分
摘要:后台管理子系统 管理员在浏览器的地址栏中输入http://localhost:8080/eBusiness/admin/toLogin访问登录页面,登录成功后,进入后台查询商品页面(selectGoods.html) <!DOCTYPE html> <html xmlns:th="http://ww 阅读全文
posted @ 2021-10-08 20:14 吴裕雄
吴裕雄--天生自然--SPRING BOOT--电子商务平台的设计与实现(THYMELEAF+MYBATIS)-- 后台代码实现部分
摘要:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P 阅读全文
posted @ 2021-10-08 19:46 吴裕雄
吴裕雄--天生自然--SPRING BOOT--电子商务平台的设计与实现(Thymeleaf+MyBatis)--设计部分
摘要:系统功能需求 1.后台管理子系统 后台管理子系统要求管理员登录成功后,才能对商品进行管理,包括添加商品、查询商品、修改商品以及删除商品。除商品管理外,管理员还需要对商品类型、注册用户以及用户的订单等进行管理。 2.电子商务子系统 1)非注册用户 非注册用户或未登录用户具有的功能如下:浏览首页、查看商 阅读全文
posted @ 2021-10-08 18:06 吴裕雄
吴裕雄--天生自然--SPRING BOOT--自定义HealthIndicator
摘要:我们知道health端点用于查看Spring Boot应用的健康状态,提供了用于检测磁盘的DiskSpaceHealthIndicator、检测DataSource连接是否可用的DataSourceHealthIndicator、检测XXX内置服务(XXX代表内置的Elasticsearch、JMS 阅读全文
posted @ 2021-10-08 17:28 吴裕雄
吴裕雄--天生自然--SPRING BOOT--自定义端点
摘要:Spring Boot提供了注解@Endpoint供我们定义一个端点类,并在端点类的方法上使用@ReadOperation注解来显示监控信息(对应Get请求),使用@WriteOperation来动态更新监控信息(对应Post请求,可以是rest-client-master访问)。 自定义端点(演示 阅读全文
posted @ 2021-10-08 16:59 吴裕雄
吴裕雄--天生自然--SPRING BOOT--端点的分类与测试
摘要:监控Spring Boot应用 在Spring Boot应用中,既然通过HTTP使用Actuator的监控和管理功能,那么在pom.xml文件中,除了引入spring-boot-starter-web之外,还需要引入spring-boot-starter-actuator,具体代码如下: <depe 阅读全文
posted @ 2021-10-08 13:20 吴裕雄
吴裕雄--天生自然--SPRING BOOT--Spring Boot的单元测试
摘要:Spring Boot为测试提供了一个名为spring-boot-starter-test的Starter。我们使用STS创建Spring Boot应用时,将自动添加spring-boot-starter-test依赖。这样在测试时,就没有必要再添加额外的JAR包。spring-boot-start 阅读全文
posted @ 2021-10-08 12:29 吴裕雄
吴裕雄--天生自然--SPRING BOOT--Spring Boot的热部署
摘要:模板引擎的热部署 在Spring Boot应用中,使用模板引擎的页面默认是开启缓存的,如果修改了页面内容,则刷新页面是得不到修改后的页面的效果。因此,我们可以在配置文件application.properties中关闭模板引擎的缓存。示例如下: 关闭Thymeleaf缓存的配置: spring.th 阅读全文
posted @ 2021-10-08 11:23 吴裕雄
吴裕雄--天生自然--SPRING BOOT--解决:method<channel.close>(reply-code=406, inequivalent arg 'type' for exchange 'weather-exchange' in vhost '/': received 'topic' but current is 'direct'
摘要:原因:代码的机器类型与rabbitmq配置的机器类型不一致。 目前有三种解决方式: 一、更改消费端代码中声明的交换机名称即可; 二,把RabbitMQ中的同名却不同类型的交换机删除即可; 三,把代码的类型改成与rabbtimq平台上的机器类型一样。 阅读全文
posted @ 2021-10-08 01:51 吴裕雄
 

上一页 1 ··· 17 18 19 20 21 22 23 24 25 26 下一页