您的位置:首页 > 其它

博客格式测试

2017-08-25 23:19 447 查看

一、你好

你好啊

你是非常好

你好

你好

你好

你好

你好

你好

这就是引用?

你好你好你哈

引用是啥?

粗体

斜体

粗斜

链接

百度

google

link text

id: http://example.com/ “optional title here” 是吗

下面是代码 (感觉有点麻烦,不是自己想要的)

/**
* mock模拟发送post请求
*/
public String postUrl(MockMvc mockMvc, URI uri, JSONObject param, UserBean user) throws Exception{
MockHttpSession mockHttpSession = new MockHttpSession();
mockHttpSession.setAttribute("user", user);
String content = mockMvc.perform(MockMvcRequestBuilders.post(uri)
.contentType(MediaType.APPLICATION_JSON_UTF8) // 设置request的content-type为application/json;charset=UTF-8
.content(param.toString())
.accept(MediaType.APPLICATION_JSON_UTF8) // 设置respose的content-type为application/json;charset=UTF-8
.session(mockHttpSession) // session保存用户的相关信息
.requestAttr("OctoPrivilege",user.OctoPrivilege)) // 保存用户权限码
.andDo(MockMvcResultHandlers.print())
//                .andExpect(MockMvcResultMatchers.status().isOk()) //TODO 返回码201 why?
.andReturn().getResponse().getContentAsString();
return content;
}

<php>
echo “hello world";
</php>


下面是java代码

java
hello


下面代码高亮

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html


Use the
printf()
function.

是不是说这就是自己想要的效果了嘞

public boolean containsId(String content, int approvalId){
JSONObject result = JSON.parseObject(content);
JSONArray jsonArray = result.getJSONArray("data");
boolean flag = false;
for(int i = 0; i<jsonArray.size(); i++){
JSONObject json = jsonArray.getJSONObject(i);
JSONObject form = json.getJSONObject("form");
int approvalIdNo = form.getIntValue("id");
if(approvalId == approvalIdNo){
flag = true;
break;
}
}
return flag;
}


uml图

Created with Raphaël 2.1.0开始我的操作确认?结束yesno

数学公式

Γ(n)=(n−1)!∀n∈N
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: