摘要: @Test void contextLoads() { String str ="!dasd_asda_dasjdlkaj"; System.out.println(a(str)); } //截取字符串 转换大写并且输出 String a(String name) { String[] str= { 阅读全文
posted @ 2021-04-06 10:11 别想这么多 阅读(204) 评论(0) 推荐(0)
摘要: 一、先在微服务pom文件中导入配置中心依赖(https://github.com/alibaba/spring-cloud-alibaba spring cloud alibaba地址) <dependency> <groupId>com.alibaba.cloud</groupId> <artif 阅读全文
posted @ 2021-03-25 16:20 别想这么多 阅读(1204) 评论(0) 推荐(0)
摘要: 一、要使用feign远程调用首先在当前微服务中pom文件中引入(也可以在生成springboot的时候勾选openfeign) <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-sta 阅读全文
posted @ 2021-03-25 15:21 别想这么多 阅读(347) 评论(0) 推荐(0)
摘要: 1.下载git 官网https://git-scm.com/ 安装后右击桌面打开 git bash 输入命令 #配置用户名 git config --global user.name "username" //名字 #配置邮箱 git config --global user.email “user 阅读全文
posted @ 2021-03-15 15:18 别想这么多 阅读(108) 评论(0) 推荐(0)
摘要: 1打开cmd 输入 ipconfig 查看 virtualBox 的IP为多少 这里为192.168.56.1修改virtualBox文件的时候就要修改为192.168.56.10 最后一条自定义 打开C盘 用户 Administrator (这里为自己计算机名)中的Vagrantfile 修改35 阅读全文
posted @ 2021-03-12 15:42 别想这么多 阅读(319) 评论(0) 推荐(0)
摘要: 1安装Oracle VBox 2下载安装Vagrant https://app.vagrantup.com/boxes/search Vagrant官方镜像仓库 https://www.vagrantup.com/downloads.html Vagrant 下载 3.打开cmd运行命令 Vagra 阅读全文
posted @ 2021-03-12 15:22 别想这么多 阅读(49) 评论(0) 推荐(0)
摘要: 用div包住内容后内容浮动过后div没有高度 只需要在父元素css中加上 overflow: hidden;就可以了 阅读全文
posted @ 2021-01-14 11:14 别想这么多 阅读(225) 评论(0) 推荐(0)
摘要: $.post({ url: "/Home/currentPage", data: {"currentPage": CP}, success: function (data) { for ( i in data){ dataHtml += "<div class=\"col-md-3 rounded 阅读全文
posted @ 2021-01-12 15:49 别想这么多 阅读(623) 评论(0) 推荐(0)
摘要: 首先用Ajax分页可以让网页不用刷新就能更新数据的技术 而且本项目用到了bootstarp中的分页样式 一、首先把分页的按钮做出来 因为需要当网页加载的时候就显示第一页的数据所以需要js的网页初始化功能 前台代码就需要放在js中生成 而分页按钮的多少又需要数据库中的数据多少来确定 需要Ajax来请求 阅读全文
posted @ 2020-12-31 10:36 别想这么多 阅读(642) 评论(0) 推荐(0)
摘要: 1.需要在application.yml中配置以下代码 mybatis://配置接口映射的路径 mapper-locations: classpath:mybatis/mapper/*.xml 2.在启动类application中类上加一个注解@MapperScan("com.itxinghua.b 阅读全文
posted @ 2020-12-08 16:13 别想这么多 阅读(278) 评论(0) 推荐(0)