当前位置:网站首页>Eureka registration center opens password authentication - record
Eureka registration center opens password authentication - record
2022-07-25 12:14:00 【dengjili】
stay Eureka Use Based on , We use simple password authentication , Add the following configuration steps
Eureka Service registry modification
introduce Spring-Security Dependent package dependency of
pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
Profile information , Add the following configuration
application.properties
spring.security.user.name=root
spring.security.user.password=root
newly added Security Configuration class WebSecurityConfig
@Configuration
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
// close csrf
http.csrf().disable();
// Support httpBasic
http.authorizeRequests().anyRequest().authenticated().and().httpBasic();
}
}
Restart Eureka Service registry 
Eureka Service providers
Profile information , Add the following authenticated user name and password , as follows :root:[email protected]
application.properties
eureka.client.serviceUrl.defaultZone=http://root:root@localhost:8761/eureka/
Add unnecessary monitoring information here
pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
Restart Eureka The service provider can
边栏推荐
- Qin long, a technical expert of Alibaba cloud: a prerequisite for reliability assurance - how to carry out chaos engineering on the cloud
- [multimodal] hit: hierarchical transformer with momentum contract for video text retrieval iccv 2021
- PHP uploads the FTP path file to the curl Base64 image on the Internet server
- 【GCN多模态RS】《Pre-training Representations of Multi-modal Multi-query E-commerce Search》 KDD 2022
- 那些离开网易的年轻人
- aaaaaaaaaaA heH heH nuN
- [dark horse morning post] eBay announced its shutdown after 23 years of operation; Wei Lai throws an olive branch to Volkswagen CEO; Huawei's talented youth once gave up their annual salary of 3.6 mil
- Brpc source code analysis (II) -- the processing process of brpc receiving requests
- Intelligent information retrieval (overview of intelligent information retrieval)
- 【RS采样】A Gain-Tuning Dynamic Negative Sampler for Recommendation (WWW 2022)
猜你喜欢

【CTR】《Towards Universal Sequence Representation Learning for Recommender Systems》 (KDD‘22)

Application and innovation of low code technology in logistics management

【GCN】《Adaptive Propagation Graph Convolutional Network》(TNNLS 2020)

【RS采样】A Gain-Tuning Dynamic Negative Sampler for Recommendation (WWW 2022)

Word中的空白页,怎么也删不掉?如何操作?

投屏收费背后:爱奇艺季度盈利,优酷急了?

Zero-Shot Image Retrieval(零样本跨模态检索)

php curl post Length Required 错误设置header头

氢能创业大赛 | 国家能源局科技司副司长刘亚芳:构建高质量创新体系是我国氢能产业发展的核心

Figure neural network for recommending system problems (imp-gcn, lr-gcn)
随机推荐
After having a meal with trump, I wrote this article
Ansible
LeetCode第303场周赛(20220724)
Data transmission under the same LAN based on tcp/ip
Web programming (II) CGI related
Intelligent information retrieval(智能信息检索综述)
【GCN-RS】Region or Global? A Principle for Negative Sampling in Graph-based Recommendation (TKDE‘22)
R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图、设置add参数在小提琴内部添加抖动数据点以及均值标准差竖线(jitter and mean_sd)
容错机制记录
【Debias】Model-Agnostic Counterfactual Reasoning for Eliminating Popularity Bias in RS(KDD‘21)
I advise those students who have just joined the work: if you want to enter the big factory, you must master these concurrent programming knowledge! Complete learning route!! (recommended Collection)
GPT plus money (OpenAI CLIP,DALL-E)
'C:\xampp\php\ext\php_ zip. Dll'-%1 is not a valid Win32 Application Solution
Client open download, welcome to try
Learning to pre train graph neural networks
Median (two point answer + two point search)
【AI4Code】《CodeBERT: A Pre-Trained Model for Programming and Natural Languages》 EMNLP 2020
mysql的表分区
From cloud native to intelligent, in-depth interpretation of the industry's first "best practice map of live video technology"
OSPF comprehensive experiment