go get -u github.com/hyperledger/sawtooth-sdk-go
From:
sed -i "s|\"protobuf/|\"${repourl}/protobuf/|" "$file"
To:
package chainmgmt | |
import ( | |
"net/http" | |
"github.com/gin-gonic/gin" | |
"github.com/hyperledger/fabric-sdk-go/pkg/client/msp" | |
"github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt" | |
"github.com/hyperledger/fabric-sdk-go/pkg/fab/ccpackager/gopackager" | |
"github.com/hyperledger/fabric-sdk-go/pkg/fabsdk" |
--- | |
name: "xyd-themis" | |
x-type: "hlfv1" | |
description: "Themis Network" | |
version: "1.0" | |
client: | |
organization: xiaoyudian | |
logging: |
version: '2' | |
networks: | |
xyd-themis: | |
services: | |
rca-themis: | |
container_name: rca-themis | |
image: hyperledger/fabric-ca:x86_64-1.1.0 |
version: '2' | |
networks: | |
xyd-themis: | |
services: | |
rca-themis: | |
container_name: rca-themis | |
image: hyperledger/fabric-ca:x86_64-1.1.0 |
{ | |
"presets": ["es2015"], | |
"plugins": ["transform-runtime"] | |
} |
Errors you'll see if a RestTemplate
isn't defined
Consider defining a bean of type 'org.springframework.web.client.RestTemplate' in your configuration.
or
No qualifying bean of type
$ git commit -m "Something terribly misguided" (1)
$ git reset HEAD~ (2)
<< edit files as necessary >> (3)
$ git add ... (4)
$ git commit -c ORIG_HEAD (5)
JsonObject json;
try {
JsonElement element = new JsonParser().parse(
new InputStreamReader(responseEntity.getBody().getInputStream())
);
json = element.getAsJsonObject();
} catch (IOException e) {
throw new RuntimeException(e.getLocalizedMessage());
}
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) | |
throws IOException, ServletException { | |
final HttpServletRequest httpRequest = (HttpServletRequest) request; | |
final HttpServletResponse httpResponse = (HttpServletResponse) response; | |
final String path = ((HttpServletRequest) request).getRequestURI(); | |
if (path.startsWith("/api/v1/oauth")) { | |
chain.doFilter(request, response); | |
} else { | |
chain.doFilter(request, response); | |
} |