Comments (4)
Could you give me a little more detail?
If you send me your stub definitions the source for test.html I might be able to help.
from wiremock.
src/mian/wiremock/__files/node/sms/open.json
{
"nodeId":1, "name":"测试短信", "unsubscribeEnabled":true, "blacklistDisabled":true,
"redlistEnabled":false, "deliveryChannelId":null, "testPhoneString":"13274432210,13564382312,18609415322",
"messageValue":"这是一条测试短信",
"deliveryChannelList" : [
{"gatewayId":1, "gatewayName":"亿美软通", "gatewayPrice":0.05, "gatewayBalance": "1000.2", "gatewayType":1, "wordsLimit": 67}]
}
src/main/wiremock/mappings/node/sms/open-mapping.json
{
"request": {
"method": "GET",
"urlPattern": "/node/sms/[0-9]+"
},
"response": {
"status": 200,
"bodyFileName": "/node/sms/open.json",
"headers": {
"Content-Type": "application/json",
"Cache-Control": "max-age=86400"
}
}
}
src/main/webapp/test.html
<script src="http://code.angularjs.org/1.0.6/angular.min.js"></script> <script src="scripts/jquery-1.7.1.min.js"></script><script type="text/javascript">
var as = angular.module('ccmsIndex',[]);
as.controller('mainController', function ($scope, $http){
$scope.navis = {
"nav":[
{"name":"首 页","url":"#/index"},
{"name":"经营分析","url":"#/analysis/evaluateSearch"},
{"name":"系统管理","url":"#/manage/userManage"},
{"name":"营销活动","url":"#/"},
{"name":"事件活动","url":"#/"},
{"name":"会员管理","url":"#/"},
{"name":"客户管理","url":"#/"},
{"name":"模板管理1","url":"#/"},
{"name":"模板管理2","url":"#/"},
{"name":"模板管理3","url":"#/"}
],
"name":"skip.qian",
"noticeCount":58
}
jQuery.ajax({
url: "http://localhost:8080/node/sms/1",
type: "GET",
dataType: "json",
success: function (response) {
console.log("success");
},
error: function (response) {
console.log("failed");
}
});
});
</script>
from wiremock.
the problem is solution! thank you !
i will be close the issue.
from wiremock.
Glad to hear you've worked it out!
from wiremock.
Related Issues (20)
- Introduce a GUI for open source HOT 1
- NPE on WireMockServer.getServeEvents when using a StubRequestFilter HOT 1
- Adding more jettyAcceptors seems to do nothing besides cause thread contention. HOT 1
- align new join handlebar helper with features present in the join provided in the library, but not covered yet
- Expose args in Options so extensions can read it
- Possible memory leak ? HOT 15
- Prevent creating multiple stub mappings with the same ID HOT 1
- Support virtual threads in Jetty server for standalone deploy
- Error when proxying to a host that is only accessible via IPv6 HOT 1
- Formatted dates not in UTC
- __files created by default since v3.6.0 HOT 1
- absent operand must be a non-null string
- Array and data manipulation in handlebars template when using docker
- FileItemPartAdapter returning multipart's field name instead of a filename
- Avoiding reading zipfile entries repeatedly in ClasspathFileSource
- Support disabled state for stub mappings HOT 1
- Add a unique id to the template request model
- Add self-description callback(s) to MatchResult for use in Diff
- Report webhook errors and results as sub-events
- Support mTLS (client certificate) for standalone WireMock client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiremock.