- 博客(19)
- 资源 (5)
- 问答 (1)
- 收藏
- 关注
原创 IDEA 自动生成作者等备注信息,快捷方式
1 file->setting->Editor> live templates2 选中新建的组>新建模板3定义模板4 点击Edit variables定义方法5补充一点,要选择java语言,ok
2021-08-08 11:13:56
393
原创 IDEA在service窗口中运行多个服务
效果如下首先要有Services窗口,Alt+8打开如果这里没有,在项目下.idea下workspace.xml最后添加配置<component name="RunDashboard"> <option name="configurationTypes"> <set> <option value="SpringBootApplicationConfigurationType" /> </set>
2021-08-04 20:30:09
640
原创 使用feign远程调用时报错Could not autowire . No beans of “ Userclient “ type found
我是在user服务里定义了一个feign接口,包目录如下在auth服务里引用了,之前把启动类放在了auth下导致了出错启动类如果放在auth路径下client无法被启动类扫描到,刚开始一直怀疑是接口定义的问题,太菜了耗时3个半才解决????其实接口时定义成功了的,还有一个想法未验证,就是能不能在启动类内查到bean对象...
2021-08-02 21:48:52
5094
1
原创 快速生成springboot启动类和yml配置文件插件
插件中心下载JBLSpringBootAppGen(可能需要重启idea)右击服务找到JBLSpringBootAppGen,需要yml就勾选上
2021-07-21 18:55:20
1300
1
原创 常见的异常
IllegalArgumentException非法参数IllegalAccessException没有访问权限IllegalArgumentException方法的参数错误ArrayIndexOutOfBoundsException数组下标越界ArithmeticExceptio数学运算异常ClassNotFoundException指定的类不存在NullPointerException空指针调用了未经初始化的对象或者是不存在的对象IndexOutOfBoundsException索引出界
2021-07-16 20:23:03
142
原创 Stream流项目中应用
先说实际应用 private void saveCategoryBrand(List<Long> cids, Long bid) { //传入long集合 List<CategoryBrand> categoryBrands = cids.stream() //转为流对象 .map(cid -> CategoryBrand.of(cid, bid)) //更改类型为Categ
2021-07-16 19:55:31
229
原创 Required Integer parameter ‘id‘ is not present[已解决]
这个问题纯属基础不扎实导致的,废了一个小时才找到/(ㄒoㄒ)/~~ @GetMapping("/of/category") public ResponseEntity<List<BrandDTO>> findBrandByCid(@RequestParam("id")Integer cid){ return ResponseEntity.ok(BrandDTO.convertEntityList(brandService.findBrandByCid(
2021-07-15 20:46:21
8252
原创 关于连接远程mysql配置问题
mysql对连接的客户端进行DNS反向解析。有2种解决办法:1,把client的ip写在mysql服务器的/etc/hosts文件里,随便给个名字就可以了。C:\Windows\System32\drivers\etc\hosts192.168.206.99 mysql 远程连接时我使用mysql2,在 my.cnf 中加入 –skip-name-resolve 。vi conf/my.cnf #进入mysql容器配置挂载的数据卷位置[mysqld]skip-name-resolve #
2021-07-13 11:20:00
374
原创 Missing URI template variable ‘id‘ for method parameter of type int[已解决]
今天犯了一个蠢蠢的错误前端vue的ajax请求是这么定义的axios.get("/checkitem/findById?id=" + row.id).then((res) => { alert(row.id + 1); if(res.data.flag){ //进行回显,基于VUE的数据绑定实现
2021-07-10 22:59:13
3930
原创 远程连接linux上docker创建的mysql报错1045,1146[已解决]
纠结了好一会,其实这个错很简单,就是创建容器的时候没有添加远程控制的权限,下面说一下我解决的流程1 打开docker2 拉取mysql镜像docker pull mysql:5.73 创建容器docker run \--name mysql \-p 3306:3306 \-d \-e MYSQL_ROOT_PASSWORD=root \-v mysql-data:/var/lib/mysql \-v mysql-conf:/etc/mysql/conf.d \--privilege
2021-07-06 11:58:39
701
原创 kibana对数据的可视化
1 查询2 .打开kibana中的management管理,单击index patterns索引模块。选择create index pattern模块,建立索引。
2021-07-01 10:03:01
175
原创 maven install package 区别
install会打包到本地仓库,没有布署到远程maven私服仓库package打包放在target所以当A项目依赖B项目时,使用installtarget和out的区别是out保存每个module的编译结果,target保存一个模块的,如果模块指定了编译结果的路径,则不会再输出到out文件夹...
2021-06-28 00:49:33
121
原创 无法访问javax.servlet.ServletException
使用Idea CE 创建了一个基于 Maven 构建的 Spring Boot 项目,在打包的时候提示:无法访问javax.servlet.ServletException配置打包插件需要将web依赖中的 tomcat 移除 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactI
2021-06-25 19:27:08
5214
录屏软件FastStoneCapture7.3.zip
2021-07-13
大牛们分享下面试java初中级程序员时都被提问过什么问题?
2021-07-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人