Shiro integrates some configurations and problems of springboot

First, post the official website address https://shiro.apache.org/spring-framework.html 1, shiro configuration class To use shiro, you must configure a shiroConfig configuration class, which requires three bean s: Realm, custom realmDefaultwebsecuritymanager needs to pass the Realm parameterShiroFilterFactoryBean, you need to pass the defaul ...

Posted by andy666 on Tue, 07 Dec 2021 01:12:31 -0800

gRPC in java version 7: Registration discovery based on eureka

Links to the full series of "java version gRPC actual combat"Generate code with protoService publishing and invocationServer streamClient streamBidirectional flowThe client dynamically obtains the server addressRegistration discovery based on eurekaAbout eurekaWhen we develop the client application, the required server address is set ...

Posted by ashebrian on Tue, 07 Dec 2021 00:56:26 -0800

Technical route of Chinese full-text retrieval (elastic search full-text retrieval, Chinese word segmentation ik, tika parsing documents)

Code in Open source warehouse 3 xxxhttps://github.com/3xxx/engineercmshttps://github.com/3xxx/engineercmsThe general idea is to install es and tika services with docker, upload word and other documents in cms, parse them with tika, get plain text, and submit them to es for storage. Front end retrieval, query in ES, return the highlighted text a ...

Posted by kf on Tue, 07 Dec 2021 00:46:04 -0800

Microservice: analyze the source code. The health check of Nacos is so simple

prefaceWe mentioned the health examination of Nacos many times, such as< Micro service: the service is too straightforward, and Nacos hasn't responded yet. What should we do? >In the article, the health check is also customized and tuned. So, how is Nacos's health check and heartbeat mechanism realized? Can Nacos's health examination mech ...

Posted by Paul Moran on Tue, 07 Dec 2021 00:38:09 -0800

Data visualization in python application -- downloading data

preface  we introduced the data generation methods through three articles, mainly including Installation of matplotlib,Application of random walk as well as Use pygal to simulate rolling dice . Next, this paper introduces the data - download data. As we all know, in data analysis and data visualization, data is the most fundamental. Analy ...

Posted by ketola on Tue, 07 Dec 2021 00:28:24 -0800

How to use webpack to optimize the development / production environment

HMR hot module replacement / module hot replacement Function: when a module changes, it will only update the module (not package all) to improve the speed Style file: you can use the HRM function because the style loader is implemented internally js file: no HRM by default html file: there is no HRM by defau lt, and the html file cannot be ...

Posted by PugJr on Tue, 07 Dec 2021 00:22:02 -0800

The latest Flink series tutorials in 2021__ Flink advanced API

day04_Flink advanced APIToday's goalFlink's four cornerstonesFlink Window operationFlink Time - TimeFlink Watermark watermark mechanismState management of Flink - keyed state and operator stateFlink's four cornerstonesCheckpoint - checkpoint, distributed consistency, data loss resolution, fault recovery, data storage is the global state, persis ...

Posted by valentin on Tue, 07 Dec 2021 00:18:57 -0800

Java must have a tool library to reduce your code by 90%

After working for many years, I found that there are many tool class libraries that can greatly simplify the amount of code and improve development efficiency, but junior developers don't know. These class libraries have long become the industry standard class libraries, and they are also used in large companies. If someone told me to use these ...

Posted by silentmajority3 on Tue, 07 Dec 2021 00:18:01 -0800

java version of gRPC practice 4: client stream

Links to the full series of "java version gRPC actual combat"Generate code with protoService publishing and invocationServer streamClient streamBidirectional flowThe client dynamically obtains the server addressRegistration discovery based on eurekaOverview of this articleThis article is the fourth in the "java version gRPC pract ...

Posted by gabrielp on Tue, 07 Dec 2021 00:10:16 -0800

JavaBean introspection and BeanInfo

Java's BeanInfo is rarely used at work. When I was studying the spring source code, I found that a genus called "spring.beaninfo.ignore" will be set when SpringBoot starts. This configuration can only be found on the Internet, which means whether to skip the search of java BeanInfo and find no other information, but what is BeanInfo? ...

Posted by cyclefiend2000 on Tue, 07 Dec 2021 00:00:32 -0800