• Spring boot integrates Shiro and JWT


    reference resources: https://blog.csdn.net/qq_43948583/article/details/104437752 https://blog.csdn.net/weixin_42375707/article/details/111145907 It is planned to realize the permission control of adding, deleting, modifying and querying levels 1. Table structure Menu table CREATE TABLE `menu` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(128) COLLATE utf8mb4_ unicode_ Ci not null comment ‘menu name’, `parent_ ID ` bigint (20) not null comment ‘parent node ID’, […]

  • How does spring cloud gateway dynamically add request parameters?


    Background introduction The technology stack used in the project is spring cloud. There are two functional requirements: In terms of business, the service of spring cloud gateway module has been able to obtain the token, and the identity information has been obtained from the token after authentication; Now I want to fill the identity information […]

  • [get the interviewer] series: bloom filter, a sharp weapon to avoid cache penetration


    introduction In the process of development or interview, we often encounter such problems as massive data need to be queried, how to avoid cache breakdown during second kill, etc? Mastering the knowledge points introduced in this article will help you gallop in your future work and interview. Bloom filter concept Bloom filter, the legendary bloom […]

  • Springboot Shiro configuration class


    ckage org.fh.config; import org.apache.shiro.cache.ehcache.EhCacheManager; import org.apache.shiro.spring.LifecycleBeanPostProcessor; import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor; import org.apache.shiro.spring.web.ShiroFilterFactoryBean; import org.apache.shiro.web.mgt.DefaultWebSecurityManager; import org.fh.realm.MyShiroRealm; import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; import net.sf.ehcache.CacheManager; import java.util.LinkedHashMap; import java.util.Map; /** *Description: Shiro configuration *Author: FH admin * from:fhadmin.cn */ @Configuration @EnableTransactionManagement public class ShiroConfiguration { /** *Shirofilterfactorybean handles the problem of intercepting resource files *Note: the […]

  • Exception filter of nodejs nestjs


    Reference document: docs nestjs. cn Speaking of nestjs’s exception filter, I have to mention it Net’s global filter function is quite powerful. In theory, it is called AOP aspect oriented programming, which is convenient for too many scenarios that need exception handling. Back to nestjs’s exception filter, it implements similar functions and adopts similar processing […]

  • Principle and application of Bloom filter


    Bloom filter was proposed by bloom in 1970. It’s actually a long binary vector plus a series of random functions. When we formally talk about bloom filter, we should first talk about this topic:When solving engineering problems, these two Boolean states are not the only answers to many questions:Yes or noThere may be two states:There […]

  • SQL anti injection filter based on spring boot


    What is SQL injectionSQL injection means that the web application does not judge or filter the legitimacy of the user input data. The attacker can add additional SQL statements at the end of the query statements defined in advance in the web application, and realize illegal operations without the knowledge of the administrator, so as […]

  • 5. How to de duplicate when the amount of data is huge?


    1. Bloom filter We usually brush today’s headlines. Today’s headlines will recommend new content to us. It should be repeated every time and remove the content we have seen. The problem is, how to push to remove the duplicate? Subconsciously, we will think that we have recorded the news recommended to users in the database. […]

  • Method of implementing cuckoo filter in go language


    Please state the source of reprint ~, this article is posted on luozhiyun’s blog: https://www.luozhiyun.com/archives/453 introduce In our work, if we encounter the judgment of duplicate web URL, spam identification and repeated elements in a large collection, we generally think of saving all elements in the collection and then determining them by comparison. If we […]

  • Spring boot + Vue + Shiro realizes front and rear end separation and permission control


    Author:_ Yufan Source: www.cnblogs.com com/yfzhou/p/9813177. html This paper summarizes the reconstruction of the project in self practice. The original project used the springboot + freemaker template. During the development process, I felt that the front-end logic was really disgusting. The back-end controller layer must also return to the modelandview of the FreeMarker template, and gradually […]

  • Vue 3 in attack – “new energy vehicle battery range calculator” open source project


    Please indicate the source of Reprint: the official website of grape city. Grape city provides developers with professional development tools, solutions and services to empower developers. Today, we bring you an open source project based on vue3: battery range calculator for new energy vehicles. This is a workshop. By completing the project, we can intuitively […]

  • The second element migration filter of M1 MAC system pytoch animegan + fmpeg (picture + video)


    The original text is reproduced from “Liu Yue’s technology blog”https://v3u.cn/a_id_201 Some time ago, animegan, the industry’s famous animation style transformation filter library, released the latest V2 version. For a time, there was no difference in the limelight. Tiktok two yuan, the largest user base in China is undoubtedly the jitter client. Its built-in animation conversion […]