# nacos-client **Repository Path**: roger_yang/nacos-client ## Basic Information - **Project Name**: nacos-client - **Description**: Nocos registry client、Nocos configuration center client、Sentinel with Nocos configuration center - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-12-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # nacos-client ### 1、add a namespace, copy Namespace ID ### 2、add data configurations in namespace ``` dataId:common.properties goup:COMMON_GROUP format:properties content: common.name=lisi ``` ``` dataId:nacos-client.properties goup:TEST_GROUP format:properties content: config.name=wangwu config.age=40 ``` #### sentinel config ``` dataId:nacos-client-sentinel goup:DEFAULT_GROUP format:JSON content: [{ "resource": "test", "count": 2, "grade": 1, "strategy": 0, "controlBehavior": 0 }] ``` ### 3、access url : http://localhost:10011/get you can see result: ``` {"pro":"lisi","dto":"wangwu"} ``` If you have concurrent access or very fast continuous access, you see the following results: ``` {"error":"too busy"} ``` If have exception, you see the following results: ``` {"pro":"fallback","dto":"fallback"} ```