准备工作 1. 添加依赖 <dependencies> <!--Junit--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <! ...
分类:
其他好文 时间:
2020-06-25 13:38:43
阅读次数:
51
能进入主页,证明核心的基本配置没有什么问题,找到的范围就应该从你要进入的类为中心 1、看下自己的controller类有没有加@Controller 2、核对自己的@RequestMapping()中的路径是否与你jsp的访问路径一致 3、查看自己接收的请求方法有没有正确(加图说明) 4、如果是用超 ...
分类:
编程语言 时间:
2020-06-25 12:13:16
阅读次数:
108
代码如下: <!DOCTYPE html> <html> <head> <title></title> <style> table{ width: 400px; height:300px; } td{ box-shadow: 5px 5px 5px grey; padding-left: 20px; ...
分类:
其他好文 时间:
2020-06-25 11:33:03
阅读次数:
103
ProxySQL的Admin管理接口 当ProxySQL启动后,将监听两个端口: admin管理接口,默认端口6032.该端口用于查看、配置ProxySQL 接收SQL语句的接口,默认端口为6033,这个接口类似于MySQL的3306端口 ProxySQL的admin管理接口是一个使用MySQL协议 ...
分类:
数据库 时间:
2020-06-25 10:15:21
阅读次数:
79
使用 axios 后台无法接收到数据的解决方案 如果想看排错思路的,可以看完踩坑经历,想直接要结果的,可以直接看解决方案。 踩坑经历 最近我在使用 SSM + Vue 做自己的小项目。Dao层 和 Service层 之类的代码已经写好了,就差 Controller层 和 Vue 的视图层还没有完成。 ...
分类:
移动开发 时间:
2020-06-25 10:13:27
阅读次数:
144
1 文件结构 2文件代码 2.1 src\App.vue <template> <div id="app"> <!-- <img src="./assets/logo.png"> <HelloWorld/>--> <router-view></router-view> <tab-bar > <tab ...
分类:
其他好文 时间:
2020-06-25 10:07:26
阅读次数:
76
实例:利用docker service创建一个wordpress 首先在manager节点创建一个overlay网络y docker network create -d overlay web 然后分别启动mysql和wordpress的service docker service create - ...
分类:
其他好文 时间:
2020-06-25 10:06:24
阅读次数:
85
方法1: @RequestMapping(value="/aliang",produces = "text/plain;charset=utf-8")@ResponseBody需要在每一个的方法中都要写上 produces = "text/plain;charset=utf-8" 方法1: <mvc ...
分类:
Web程序 时间:
2020-06-25 09:36:25
阅读次数:
83
1.下载UEditor 2.新闻上传 package Controller; import Entity.News; import Service.NewsService; import Util.Category; import javax.servlet.ServletException; im ...
分类:
Web程序 时间:
2020-06-24 23:58:49
阅读次数:
130
一、删除新闻 1.1 Controller层 1.2 Service层 二、新闻的修改 2.1 Controller层 2.2 Service层 三、新闻的添加 3.1 Controller层 3.2 Service层 四、新闻的查看 4.1 Controller层 4.2 Service层 五、效 ...
分类:
Web程序 时间:
2020-06-24 23:41:33
阅读次数:
68