当前位置:网站首页>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
边栏推荐
- Median (two point answer + two point search)
- Pycharm connects to the remote server SSH -u reports an error: no such file or directory
- 【高并发】高并发场景下一种比读写锁更快的锁,看完我彻底折服了!!(建议收藏)
- 【图攻防】《Backdoor Attacks to Graph Neural Networks 》(SACMAT‘21)
- 【AI4Code】《InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees》ICSE‘21
- Video Caption(跨模态视频摘要/字幕生成)
- 投屏收费背后:爱奇艺季度盈利,优酷急了?
- 【AI4Code】《Contrastive Code Representation Learning》 (EMNLP 2021)
- 小程序image 无法显示base64 图片 解决办法 有效
- aaaaaaaaaaA heH heH nuN
猜你喜欢
![[multimodal] transferrec: learning transferable recommendation from texture of modality feedback arXiv '22](/img/02/5f24b4af44f2f9933ce0f031d69a19.png)
[multimodal] transferrec: learning transferable recommendation from texture of modality feedback arXiv '22

Multi-Label Image Classification(多标签图像分类)

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

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

Atomic 原子类

Start with the development of wechat official account

剑指 Offer 22. 链表中倒数第k个节点

记录一次线上死锁的定位分析

【微服务~Sentinel】Sentinel降级、限流、熔断

Figure neural network for recommending system problems (imp-gcn, lr-gcn)
随机推荐
Location analysis of recording an online deadlock
Median (二分答案 + 二分查找)
The applet image cannot display Base64 pictures. The solution is valid
【GCN-RS】Towards Representation Alignment and Uniformity in Collaborative Filtering (KDD‘22)
dirReader.readEntries 兼容性问题 。异常错误DOMException
Eureka注册中心开启密码认证-记录
【图攻防】《Backdoor Attacks to Graph Neural Networks 》(SACMAT‘21)
【GCN-RS】Are Graph Augmentations Necessary? Simple Graph Contrastive Learning for RS (SIGIR‘22)
【AI4Code】《CodeBERT: A Pre-Trained Model for Programming and Natural Languages》 EMNLP 2020
马斯克的“灵魂永生”:一半炒作,一半忽悠
Power Bi -- these skills make the report more "compelling"“
Innovation and breakthrough! AsiaInfo technology helped a province of China Mobile complete the independent and controllable transformation of its core accounting database
R语言ggplot2可视化:可视化散点图并为散点图中的部分数据点添加文本标签、使用ggrepel包的geom_text_repel函数避免数据点之间的标签互相重叠(为数据点标签添加线段、指定线段的角度
'C:\xampp\php\ext\php_zip.dll' - %1 不是有效的 Win32 应用程序 解决
【多模态】《TransRec: Learning Transferable Recommendation from Mixture-of-Modality Feedback》 Arxiv‘22
R语言ggplot2可视化:使用ggpubr包的ggstripchart函数可视化点状条带图、设置palette参数配置不同水平数据点的颜色、设置add参数在点状条带图中添加均值标准差竖线
A beautiful gift for girls from programmers, H5 cube, beautiful, exquisite, HD
从云原生到智能化,深度解读行业首个「视频直播技术最佳实践图谱」
【高并发】SimpleDateFormat类到底为啥不是线程安全的?(附六种解决方案,建议收藏)
Transformer变体(Routing Transformer,Linformer,Big Bird)