自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 问答 (1)
  • 收藏
  • 关注

原创 python字符串只保留中文

In [64]:re.sub(r'[^\u4e00-\u9fa5]','','ABC中,。*')Out[64]: '中'

2020-02-27 16:23:28 5646

转载 Java线程池几个参数的理解

线程池几个参数的理解:比如去火车站买票, 有10个售票窗口, 但只有5个窗口对外开放. 那么对外开放的5个窗口称为核心线程数, 而最大线程数是10个窗口.如果5个窗口都被占用, 那么后来的人就必须在后面排队, 但后来售票厅人越来越多, 已经人满为患, 就类似于线程队列已满.这时候火车站站长下令, 把剩下的5个窗口也打开, 也就是目前已经有10个窗口同时运行. 后来又来了一批人,10个窗口也处理不...

2020-02-25 16:05:52 355

原创 简单模拟tomcat的filter过滤器模式

//Filter接口public interface Filter { void work(); default void doFilter(FilterChain filterChain) { work(); filterChain.doFilter(); }}//FilterChain接口public interface Fi...

2020-02-25 10:39:18 289

转载 springboot断点调试

首先在springboot的pom.xml中的插件中增加一个用于调试的插件<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-...

2020-02-23 13:45:05 3649

转载 Oauth2授权

Oauth2授权

2020-02-20 14:07:06 169

原创 spring构造器注入

Starting with Spring 4.3, if a class, which is configured as a Spring bean, has only one constructor, the Autowired annotation can be omitted and Spring will use that constructor and inject all necess...

2020-02-20 09:37:27 218

原创 同一个微服务用不同yml配置文件启动问题

加入同一个微服务有两个配置文件,application.yml和application-eureka.yml,如果微服务以application.yml文件启动,则只加载application.yml中的属性,如果微服务以application-eureka.yml启动,则两个配置文件的属性都会加载,遇到相同属性时,后者覆盖前者。...

2020-02-19 20:50:05 1320

原创 java卸载后重装,修改环境变量不生效 Error: could not open `C:\Program Files\Java\jre1.8.0_131\lib\amd64\jvm.cfg

将环境变量%JAVA_HOME%\bin;挪到path的最前面就好了。

2020-02-19 15:57:51 1038 1

原创 springcloud启动注意事项

1.相应服务的@Enabe…注解有没有开启。2.yml配置文件是否填写正确。

2020-02-19 13:54:15 204

原创 sklearn计算idf值公式

if self.use_idf: n_samples, n_features = X.shape df = _document_frequency(X) df = df.astype(dtype, **`_astype_copy_false`(df)) # perform idf sm...

2020-02-14 14:46:12 505

原创 python plot不自动显示图像

使用plt.ion()打开自动显示图像模式或者手动调用plt.show()

2020-02-13 19:17:40 2210

原创 简单模拟java异步回调模式

//测试public class Test { public static void main(String[] args) { System.out.println("A tells B to do something"); CompletableFuture future = CompletableFuture.supplyAsync(() ->...

2020-02-04 20:51:18 308

转载 利用python进行数据分析

利用python进行数据分析

2020-02-02 18:38:05 225

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除