- 博客(20)
- 资源 (7)
- 收藏
- 关注
原创 Opencascade 点旋转
/绕着点gp_Pnt(0.0, 0.0, 0.0),Z轴方向旋转。// 创建一个表示旋转的四元数对象。// point绕则Z轴旋转45度。//绕着某个点,某个方向旋转。// 打印旋转后的点坐标。// 打印旋转后的点坐标。
2024-06-03 17:49:39
449
原创 CLION 用VS编译环境生成和调用lib库
三、点击编译后(ctr+F9)后生成的目标文件。二、生成库文件cmake设置。五、调用lib文件注意事项。四、调用cmake设置。
2024-02-03 20:45:00
525
1
原创 坑货Centos tomcat和Ngin添加到系统服务
一、Tomcat 添加到系统服务1.将tomcat 解压目录(/usr/tomcat/tomcat-api/bin)下的catalina.sh文件拷贝到/etc/init.d 中 mvcatalina.shtomcat 注意,不要.sh2.给加班添加权限chmod755/etc/init.d/tomcat3.打开拷贝好的tomcat 文件(vim /etc/init.d/tomcat)#这里配置的2345指的是2345这4个运行级别会开机自启动,10是启动优先级,9...
2021-01-18 23:14:56
183
原创 Centos 环境Docker安装redis 无法启动 Get Permission Denied
一、docker 安装redis1.在cent OS7 窗口输入命令 docker pull redis 进行安装。二、编写redis配置1.输入命令,创建redis数据目录和redis 配置目录以及配置文件。 a: mkdir -p /root/docker/redis/data mkdir b:-p /root/docker/redis/con...
2020-03-14 23:57:58
1838
原创 Ribon 负载均衡
启动类添加@Beanpublic IRule myRule(){ //return new WeightedResponseTimeRule(); //return new RandomRule();//随机策略 return new RetryRule();//轮询策略}
2019-11-08 23:03:14
261
原创 Spring Cloud OpenFeign 踩坑
错误:org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class java.lang.Object] and content type [text/plain;char...
2019-11-07 23:21:40
1742
原创 Centos7 基于yum 安装jdk1.8
1.进入usr目录,创建目录java文件夹a. cd cd /usrb. mkdir java2、搜索jdk安装包()确保已经装了yum)yum search java|grep jdk3.安装jdkyum install java-1.8.0-openjdk4.打开profile文件使用vi /etc/profile编辑profile文件5.在/etc/p...
2019-10-25 23:06:57
160
原创 Spring boot win10 系统最简单整合redis
一、 启动rediscd 到Redis 安装目录 cd D:\Program" "Files\Redis,注意win10 系统空格在命令行里面使用" "代替 输入启动启动redis命令:redis-server.exe redis.windows.conf。二、配置pom文件redis maven依赖<!-- 引入redis--><dependency&g...
2019-10-10 22:46:56
125
原创 spring boot 整合ribbon 分布式开发熔断降级
一,pom文件引入依赖<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-ribbon</artifactId></dependency>二 、配置...
2019-10-09 23:14:57
276
原创 @ConfigurationProperties 和@Value区别
@PropertySource(value={"classpath://aaa.properties"})指定property文件路径,不指定则默认加载application.properties@ImportResource(locations = {"classpath:beans.xml"}) 是导入spring 的bean 配置,但是spring boot 不建议这样做,spring ...
2019-10-03 14:32:52
353
原创 spring boot 全局异常捕获
以下是捕获全局异常的demo,请注意红色标记字体package com.intercepter.myintcedemo.exception;import com.intercepter.myintcedemo.jsonobj.MessageObj;import org.springframework.web.bind.annotation.ExceptionHandler;import...
2019-10-02 23:23:28
165
原创 WPF 路由事件
一、在xaml窗口引入当前窗口隐藏类Command="{x:Static commands:RoutedCommands.AddRoutedCommad}"二、实例化路由方法<Window.CommandBindings> <CommandBinding Command="{x:Static commands:Routed...
2019-09-19 23:35:02
160
原创 C# WPF值转换
一、WPF 代码<Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> ...
2019-09-15 21:16:51
587
原创 WPF 拖拽
<Window x:Class="Max32andAfter.DragTest" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="ht...
2019-09-15 00:11:18
493
原创 WPF 窗口单实例
测试了一下,发现窗口缩小后不能自动跳到最前端,暂时没有时间去解决public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); M...
2019-09-03 23:04:11
1016
原创 spring boot前后端分离登录拦截以及静态资源路径映射
拦截实体类import com.kol.constant.SessioNameCons;import com.kol.domain.UserDomain;import com.kol.msg.Msg;import com.kol.utils.JsonUtils;import org.springframework.context.annotation.Bean;import org....
2019-09-01 13:40:47
3984
原创 Spring boot 接收实体类错误 cannot deserialize from Object value (no delegate- or property-based Creator)
随便测试了一个接口:@PostMapping("/uploadBanner")public Msg UploadBanner(@RequestBody BannerDomain bannerDomain) throws InvalidDefinitionException { Msg msg=new Msg(1,"this is test"); //BannerDomai...
2019-08-20 22:46:41
6305
原创 Spring boot2.x 整合mybatis图片上传
一、pom 文件引入依赖引入依赖 <!-- mysql --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <scope>runtime<...
2019-08-09 19:37:08
687
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人