后台:gitee:https://gitee.com/zhangjiqun/background-development-demo.git
docway:http://www.docway.net/project/1ghALtt7cJt/1ghALw36HiK
目录
thymeleaf模板是在java中实现前端界面开发
vue实现前后端的分离
https://www.bilibili.com/video/BV19E411v7Ty?p=4
在idea查看数据库数据
安装EasyCode 插件
配置mapping扫描路径
注意mapping,xml 路径
设置数据库主键自增
设置ip地址和端口号
get和post的区别
get请求:信息在url中
post请求:信息不在url中
使用docway进行测试
vue与Element-Ui的关系
Element Ui 初始化
npm安装
在页面上引入 js 和 css 文件即可开始使用
通过 Element ui 官网进行效果查看和代码复制
实现主界面框架布局
stripe作用
index.html
分页效果
fastjsonlist转json
com.alibaba
druid
1.1.3
@GetMapping("selectAllJson")
@CrossOrigin
public String selectAllJson() throws JSONException {
List list=this.userInfoService.queryAllByLimit(1,100);
String str = JSON.toJSONString(list); // List转json
return str;
thymeleaf模板是在java中实现前端界面开发
vue实现前后端的分离


Get是不安全的,因为在传输过程,数据被放在请求的URL中;
Post的所有操作对用户来说都是不可见的。
Get传送的数据量较小,这主要是因为受URL长度限制;
Post传送的数据量较大,一般被默认为不受限制。
Get限制Form表单的数据集的值必须为ASCII字符;
而Post支持整个ISO10646字符集。
Get执行效率却比Post方法好
Get是form提交的默认方法。
get请求:信息在url中


1.Element-Ui是基于vue封装的组件库,简化了常用组件的封装,提高了重用性原则;
2. vue是一个渐进式框架,Element-Ui是组件库;
完成后即可安装element-ui,然后在index.js中引入全局注册即可,如下所示:
安装element-ui
cnpm install element-ui --save
index.js中引入全局注册
import ElementUi from 'elemet-ui'
import '@/theme-et/index.css'
Vue.use(ElementUi)
element-ui:官网 https://element.eleme.cn/#/zh-CN
npm i element-ui -S
npm安装
var Main = {
data() {
return {
tableData: [{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄'
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄'
}, {
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1516 弄'
}]
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')
导航一
分组一
选项1
选项2
选项3
选项4
选项4-1
导航二
分组一
选项1
选项2
选项3
选项4
选项4-1
导航三
分组一
选项1
选项2
选项3
选项4
选项4-1
查看
新增
删除
王小虎
var Main = {
data() {
const item = {
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
};
return {
tableData: Array(50).fill(item)
}
}
};
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')
@import url("//unpkg.com/element-ui@2.15.3/lib/theme-chalk/index.css");
.el-header {
background-color: #B3C0D1;
color: #333;
line-height: 60px;
}
.el-aside {
color: #333;
}
stripe作用


// import VueResource from 'vue-resource'
// Vue.use(VueResource) ;
var Main = {
data() {
return {
tableData: [{
age: '2',
name: '王小虎',
id: '11'
}]
}
},
created() {
this.getData();
},
methods: {
getData() {
let that = this;
let url = "http://localhost:10000/userInfo/selectAll";
this.$http.get(url).then(res => {
let rs = JSON.parse(JSON.stringify(res.body));
console.log(rs);
that.tableData = rs;
})
}
}
}
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')
前端:vue ,使用Element ui 控件
后端:使用spring boot mybatis。打包jar 上传服务器
数据库:mysql,navicate作用数据库表操作工具
先来个效果图吧;
最终网站



#user nobody;
worker_processes 3;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name ll;
charset utf-8;
location / { # /表示根目录,该配置表示Nginx默认打开/www下的index.html
# root /www/wwwroot/tm.bt.cn;
root /www/wwwroot/zjq.com;
# root /www/wwwroot;
# root /www/wwwroot/192.144.212.56;
# root /www/server/tomcat9/demo/src/main/resources/templates;
index index.html index.htm;
}
location = /project {
root /www/wwwroot/192.144.212.56;
index index.html index.htm;
}
}
}
站点启用tomcat,没有安装需要安装
mysql -umiaosha -p123456
注意没有空格
注意:数据库命.表明

就是数据库名称 ip配置的问题
就是数据库名称 ip配置的问题
