随笔分类 -  javaEE

摘要:废话不多说,直接上操作步骤: 1、下载“ja-netfilter-all.rar”包 链接:https://pan.baidu.com/s/1rVRdkBE39cQsEWS0RdkHlA 提取码:7ime 2、解压,得到如下文件 3、进入 scrits 目录,双击“install-all-users 阅读全文
posted @ 2022-08-15 23:08 codeing123 阅读(4502) 评论(0) 推荐(0) 编辑
摘要:异常: java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value "*"since that cannot be set on 阅读全文
posted @ 2021-03-01 23:33 codeing123 阅读(8509) 评论(3) 推荐(1) 编辑
摘要:1、入口层 1.1 引导类,程序的入口 @SpringBootApplication //使用组合注解(@EnableAutoConfiguration/@ComponentScan/@SpringBootConfiguration) public class TestApplication { p 阅读全文
posted @ 2021-01-28 10:06 codeing123 阅读(170) 评论(0) 推荐(0) 编辑
摘要:前期准备 1、创建一个spring-web工程,在pom.xml中添加依赖 <!-- 前端模板--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf< 阅读全文
posted @ 2020-09-14 10:23 codeing123 阅读(545) 评论(0) 推荐(0) 编辑
摘要:Routing模式则可以指定具体的接收队列。 1、在服务类中,编写路由模式消息的接收代码 @Servicepublic class MessageService {//路由模式消息接收,处理error级别日志消息 @RabbitListener(bindings=@QueueBinding(valu 阅读全文
posted @ 2020-09-11 23:31 codeing123 阅读(870) 评论(0) 推荐(0) 编辑
摘要:使用注解方式实现RabbitMq整合 RabbitMq交换器接收到的消息会广播到每一个绑定的消息队列。(fanout类型的交换器) 在进行该部分实验前把之前的交换器和队列删除,在RabbitMq管理后台完成。 1、RabbitMq配置类 @Configuration public class Rab 阅读全文
posted @ 2020-09-11 23:05 codeing123 阅读(692) 评论(0) 推荐(0) 编辑
摘要:1、首先下载安装好Rabbit MQ,使用Username : guest Password: guest登录 2、观察目前RabbitMq中的Exchange和queue的情况。下图是默认存在的交换器 3、 默认没有任何消息队列 RabbitMQ和SpringBoot整合 RabbitMq交换器接 阅读全文
posted @ 2020-09-11 22:17 codeing123 阅读(544) 评论(0) 推荐(0) 编辑
摘要:SpringSecurity 1、SpringSecurity主要还是在配置文件里面配置 类前面添加注解 @EnableWebSecurity 继承 WebSecurityConfigurerAdapter 注入自带的DataSource 注入重写的UserDetailsService 重写用户身份 阅读全文
posted @ 2020-09-11 11:06 codeing123 阅读(4276) 评论(0) 推荐(0) 编辑
摘要:后端分页 1、在pom.xml文件添加pageHelper的依赖。 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <versi 阅读全文
posted @ 2020-09-10 21:30 codeing123 阅读(1514) 评论(0) 推荐(0) 编辑
摘要:基于注解的Redis缓存实现 1、加入redis依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependen 阅读全文
posted @ 2020-09-09 15:56 codeing123 阅读(614) 评论(0) 推荐(0) 编辑
摘要:基本缓存 1、导入springbootdata数据库 SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- -- Table structure for t_article -- DROP TABLE IF EXISTS `t_article`; CRE 阅读全文
posted @ 2020-09-09 11:00 codeing123 阅读(404) 评论(0) 推荐(0) 编辑
摘要:整合SpringBoot与Mybatis 1、创建一个Spring Boot项目。pom配置文件中添加依赖,这里我们采用了阿里巴巴的Druid连接池 <!-- 阿里巴巴的Druid数据源依赖启动器 --><dependency> <groupId>com.alibaba</groupId> <art 阅读全文
posted @ 2020-09-08 11:02 codeing123 阅读(783) 评论(0) 推荐(0) 编辑
摘要:Thymeleaf的国际化 1、创建一个SpringBoot工程,明明为I18n-demo,选择Thymeleaf和SpringBoot-Web启动器。该工程的目录结构如下图所示: 2、编写MyLocalResovel.java ,实现LocaleResolver接口 @Configuration 阅读全文
posted @ 2020-09-07 22:41 codeing123 阅读(606) 评论(0) 推荐(0) 编辑
摘要:基于@ConfigurationProperties的属性注入 1、在pom.xml中添加依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-proces 阅读全文
posted @ 2020-09-05 10:44 codeing123 阅读(1049) 评论(0) 推荐(0) 编辑
摘要:步骤 1、在pom.xml中添加spring-boot-devtools热部署依赖。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </de 阅读全文
posted @ 2020-08-20 17:22 codeing123 阅读(125) 评论(0) 推荐(0) 编辑
摘要:1、pom.xml中添加spring-boot-starter-test测试启动器依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> 阅读全文
posted @ 2020-08-20 16:11 codeing123 阅读(195) 评论(0) 推荐(0) 编辑
摘要:首先给出学习的视频传送门:https://www.bilibili.com/video/BV1Y441197Lw Swagger 学习目标: 了解Swagger的作用 了解前后端分离 在SpringBoot中集成Swagger Swagger简介 前后端分离 主流搭配:Vue + SpringBoo 阅读全文
posted @ 2020-08-10 09:11 codeing123 阅读(398) 评论(0) 推荐(0) 编辑
摘要:@mapper 与 .xml 的关系 mapper类: 1 package com.zsc.ticketsys.mapper; 2 3 import com.zsc.ticketsys.domain.Ticket; 4 import org.apache.ibatis.annotations.Del 阅读全文
posted @ 2020-06-05 06:05 codeing123 阅读(161) 评论(0) 推荐(0) 编辑
摘要:下载安装 Redis请参考网址(含安装包):https://www.cnblogs.com/xing-nb/p/12146449.html 下载安装Redis Desktop Manager 请参考网址(含安装包):https://www.jianshu.com/p/6895384d2b9e Red 阅读全文
posted @ 2020-05-27 23:28 codeing123 阅读(1127) 评论(0) 推荐(0) 编辑
摘要:原生js 1 var xhr=new XMLHttpRequest(); 2 xhr.open("post","/museum/relic/delete"); 3 xhr.setRequestHeader("Content-type","application/json"); 4 xhr.send( 阅读全文
posted @ 2020-05-20 09:39 codeing123 阅读(3258) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示