`
doing19852810
  • 浏览: 3292 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论
文章列表
   spring MVC中如何设置应答体的content type呢? spring MVC中如何设置返回类型呢? 我们知道response 的content type主要有: text/html text/plain application/json;charset=UTF-8 application/octet-stream 等 先举一个例子,spring mvc中可以通过如下方式返回json字符串: @ResponseBody @RequestMapping(value = "/upload") public Str ...
java  web中如何跨域请求呢? 使用jsonp,详情请参考:http://json-p.org/ 页面代码如下:   <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <script type="appli ...
字体属性:(font)   大小 {font-size: x-large;}(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD   样式 {font-style: oblique;}(偏斜体) italic;(斜体) normal;(正常)   行高 {line-height: normal;}(正常) 单位:PX、PD、EM   粗细 {font-weight: bold;}(粗体) lighter;(细体) normal;(正常)  
自我总结的数据库连接方法 (以查询全部为例) 一、传统连接 1.类DBConnection ,用于得到Connection 对象 public class DBConnection { private final String DBDRIVER = "com.microsoft.jdbc.sqlserver.SQLServerDriver" ; private final String DBURL = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=JSP" ; private final ...
Global site tag (gtag.js) - Google Analytics