diff --git a/docs/usage/java.md b/docs/usage/java.md
index 6684e755ed6e3f87382971f08bca1a644b600648..c24130d1e60e8ce5fbecc150cee0d7a5e08c0d7c 100644
--- a/docs/usage/java.md
+++ b/docs/usage/java.md
@@ -40,26 +40,28 @@ Renovate will search repositories for all `pom.xml` files and processes them ind
 
 Here is an example configuration to work with custom Artifactory servers using authentication:
 
-```
+```json
 {
-	"maven": {
-	    "enabled": true
-	},
-	"hostRules": [{
-	    "hostType": "maven",
-        "endpoint": "https://artifactoryurl1/",
-	    "username": "artifactoryusername",
-	    "password": "artifactorypassword"
-	}, {
-	    "hostType": "maven",
-        "endpoint": "https://artifactoryurl2/",
-	    "username": "artifactoryusername",
-	    "password": "artifactorypassword"
-	}],
-    "packageRules": [{
-        "managers": ["maven"],
-	    "registryUrls": ["https://artifactoryurl1/", "https://artifactoryurl2/"]
-    }]
+  "hostRules": [
+    {
+      "hostType": "maven",
+      "baseUrl": "https://artifactoryurl1/",
+      "username": "artifactoryusername",
+      "password": "artifactorypassword"
+    },
+    {
+      "hostType": "maven",
+      "baseUrl": "https://artifactoryurl2/",
+      "username": "artifactoryusername",
+      "password": "artifactorypassword"
+    }
+  ],
+  "packageRules": [
+    {
+      "managers": ["maven"],
+      "registryUrls": ["https://artifactoryurl1/", "https://artifactoryurl2/"]
+    }
+  ]
 }
 ```
 
diff --git a/docs/usage/nuget.md b/docs/usage/nuget.md
index 546c05ebc0b8f9a7f6419e55a69ed85300a5deac..d9a5dd1fa419104a0ed0f91b91bda5d16ac0d5c2 100644
--- a/docs/usage/nuget.md
+++ b/docs/usage/nuget.md
@@ -65,7 +65,7 @@ Credentials for authenticated/private feeds can be provided via host rules in th
 "hostRules": [
   {
     "hostType": "nuget",
-    "endpoint": "http://example1.com/nuget",
+    "baseUrl": "http://example1.com/nuget",
     "username": "root",
     "password": "p4$$w0rd"
   }