首页 > 其他 > 详细

mark

时间:2020-05-24 10:17:08      阅读:45      评论:0      收藏:0      [点我收藏+]
spring:
datasource:
url: jdbc:mysql://localhost:3306/lovers?serverTimezone=UTC
  #jdbc:mysql://localhost:3306/lovers?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=UT
    password: 123456
username: root
driver-class-name: com.mysql.cj.jdbc.Driver


mybatis:
mapper-locations: classpath:/mapper/**/*.xml


$.ajax({
url: ‘http://localhost:8080/test/selectInfo‘,
type: ‘get‘,
// 设置的是请求参数
data: "",
// 用于设置响应体的类型 注意 跟 data 参数没关系!!!
dataType: ‘json‘,
success: function (res) {
// 一旦设置的 dataType 选项,就不再关心 服务端 响应的 Content-Type 了
// 客户端会主观认为服务端返回的就是 JSON 格式的字符串
$("#info").text(JSON.stringify(res));
}
})

mark

原文:https://www.cnblogs.com/yyZNL/p/12945775.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!