- 博客(35)
- 收藏
- 关注

原创 SSM项目部署到阿里云服务器。只需要五个步骤。
最近在看很多ssm项目部署到阿里云的教程:踩了很多坑,所以希望大家部署时候有所借鉴吧。有什么不懂 可以联系qq交流:980631161.主要分为五个步骤:1.购买服务器2下载xshell和Xftp 63.在服务器上安装 jdk,mysql,tomcat。4.数据库准备数据5.maven项目生成war文件。1.购买服务器在阿里云购买一个 ESC服务器网址是:https://www....
2019-03-28 15:20:03
21424
27

原创 SSM整合 记账簿项目
SSM整合记账簿源码总结建议!!!先下载源码运行成功后理解每一部分都做了什么样的事情后在开发。学完ssm框架后做了一个maven项目,关于一个简单的记账簿,这里主要使用到 ssm框架+maven项目(包括登录,注册,记账(就是添加),删除记账目录,修改记账目录)源码github下载地址功能截图:下面我详细向大家描述一下这个项目的总过程:环境搭建 ,首先创建一个maven项目,创建...
2019-03-17 22:33:27
800
3
原创 rouyi项目在linxu系统部署全过程记录
环境准备1、三台linux服务器ABC、其中A作为前端服务器,以及redis和mysql的服务器,B和C作为后端服务器。2、A服务器需要安装Redis、mysql、nginx、以及打包工具node和npm,分别可以去csdn找安装教程3、BC两台服务器都要安装jdk1.8 、mavne(linux打包Springboot项目)、tomcat(如果是war包需要用到tomcat)4、A服务器ip:192.168.119.128,B服务器ip:192.168.119.129,C服务器ip:192.168
2021-04-16 15:37:19
644
原创 spring boot 连接虚拟机(Linux) redis
前提是你已经安装redis且支持远程连接,redis的安装这里不再赘述1、判断你的redis是否支持远程连接:①:在centos中输入如下命令找到redis-cli:whereis redis-cli②:根据返回的目录找到redis-cli,再执行如下命令:③:192.168.119.128就是你的虚拟机ip地址。若这一步报错connect refused,可能是防火墙没有开放6379端口。执行如下命令查看开放的端口:firewall-cmd --zone=public --list-ports
2021-04-14 18:36:15
538
原创 linux Centos7下载rabbitMQ教程
下载安装包很多同学在下载linux下的rabbitmq安装包的时候,总是找不到对应的安装包,而且在官网只能看到最新版本的安装包,下面我带领大家找到历史版本的安装包,本次下载的是.rpm安装包。安装rabbitmq需要下载rabbitmq.rpm和erlang.rpm环境rabbitmq.rpmerlang.rpm需要找到对应的erlang和rabbitmq版本,版本要求请查看:https://www.rabbitmq.com/which-erlang.htmlrabbitmq传送门:ht
2020-08-31 09:48:26
727
原创 Springboot_es仿京东商城
Springboot_es仿京东商城1、创建Springboot项目,pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.
2020-08-02 17:34:21
726
原创 ElasticSearch笔记
ElasticSearch笔记ElasticSearch概述Elaticsearch,简称为es, es是一个开源的高扩展的分布式全文检索引擎,它可以近乎实时的存储、检 索数据;本身扩展性很好,可以扩展到上百台服务器,处理PB级别(大数据时代)的数据。es也使用 Java开发并使用Lucene作为其核心来实现所有索引和搜索的功能,但是它的目的是通过简单的RESTful API来隐藏Lucene的复杂性,从而让全文搜索变得简单。 据国际权威的数据库产品评测机构DB Engines的统计,在2016年1月,
2020-08-02 17:32:50
1464
原创 typora修改引用的地方
blockquote { border-left: 4px solid #00FA9A ; padding: 0 15px; color: #777777;}将 #00FA9A替换成其他颜色
2020-07-23 08:47:49
1567
原创 Spring Boot+Vue|axios异步请求数据的12种操作(下篇)
Spring Boot+Vue|axios异步请求数据的12种操作(下篇)今天我们继续讲解其余的 6 种操作。7、基于 RESTful POST 请求 + 普通变量传参基于 RESTful 的 axios 异步 POST 请求的方法为 axios.post(url).then()url:请求的 URL,直接追加参数。then():请求成功的回调函数。Vue 代码如下所示。<template> <div> <button type="butt
2020-07-23 08:09:57
313
原创 Spring Boot+Vue|axios异步请求数据的12种操作(上篇)
Spring Boot+Vue|axios异步请求数据的12种操作(上篇)Spring Boot + Vue 前后端分离最核心的操作就是通过异步请求完成数据同步,这其中又可以分为很多种不同的情况,比如是 GET 请求还是 POST 请求?参数是普通变量还是 JSON?基于 RESTful 架构如何操作等等,今天楠哥就把这些不同的请求方式做了一个汇总,一次性写清楚,以后需要用的时候直接来查这篇文章即可。前后端分离异步请求共包含以下 12 种情况:1、GET 请求 + 普遍变量传参2、GET 请求 +
2020-07-23 08:08:33
715
原创 Vue动态绑定组件和缓存
Vue动态绑定组件和缓存动态绑定组件:原始绑定是:<Children></Children>动态绑定写法:这个时候可以修改 :is=""的值来动态使用不同的组件<component :is="component"></component>缓存标签:<keep-alive></keep-live>例子:<keep-alive> <component :is="component"><
2020-07-23 08:03:12
372
原创 EasyExcel学习笔记
EasyExcel学习笔记官方地址:https://www.yuque.com/easyexcel/doc/easyexcel学习EasyExcel之前,首先要学习Apache poiApache poi1、创建springboot项目,然后导入依赖.poi是03版本,然后他的excel结尾是xlspoi-ooxml是07版本,excel结尾是xlsx<dependency> <groupId>org.apache.poi</groupId>
2020-07-03 08:47:25
1053
原创 MybatisPlus自动生成代码详解
MybatisPlus自动生成代码详解创建springboot项目pom.xml<dependency> <groupId>io.swagger</groupId> <artifactId>swagger-annotations</artifactId> <version>1.5.18</v...
2020-03-23 19:34:10
614
原创 阿里云短信验证码服务服务
阿里云短信验证码服务服务创建Springboot项目pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactI...
2020-03-13 16:41:58
371
原创 vuex 状态管理模式
1、安装vuexnpm install vuex --save2、创建store文件夹创建index.jsimport Vue from 'vue'import Vuex from 'vuex'import app from './module/app'import user from './module/user'import getters from './getter'...
2020-03-07 16:08:16
156
1
原创 springboot集成swagger学习笔记
Springboot集成Swagger创建Springboot_swagger项目pom.xml <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId>...
2020-02-15 11:27:55
590
原创 vue axios跨域请求解决
vue axios跨域请求解决1、修改vue项目下的config目录下的index.jsindex.jsproxyTable: { "/api": { target: "http://192.168.0.111:8888/", //这里是修改你要访问的后台服务器的ip+端口 changeOrigin: true, pathRewrite: { '^/a...
2019-12-17 22:00:17
444
原创 Springboot Aop整合
Springboot Aop整合创建Springboot项目pom.xml<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boo...
2019-12-14 20:39:12
218
原创 Springboot加拦截器HandlerInterceptor
Springboot加拦截器以查看是否登录来确定是否判断是否需要拦截注解:首先 implements HandlerInterceptor接口 ,调用里面的preHandle()意思是在执行一个url之前进行拦截String uri = request.getRequestURI();拦截要执行的urlpublic class LoginInterceptor implements ...
2019-12-08 22:35:59
455
原创 Springcloud学习总结(以项目案例来学习)
SpringCloud学习笔记本次笔记可以根据项目的案例: 地址:https://github.com/LLLLucas/aispringclouddemo里面有源码和sql文件。1、建立一个父项目Maven2、注册中心创建子项目命名为:eurekaserverpom.xml配置中心spring-cloud-starter-netflix-eureka-server是注册...
2019-12-07 23:29:17
555
原创 vue中部分组件
var vm = new Vue({name:‘root’,el:"#app",// 数据data: { a: 1 } / Function, // data类型根实例为Object,组件中为Functionprops:[]/{}, // 设置父组件传递给子组件的数据限制computed:{}, // 计算属性watch:{}, // 监控属性methods:{}, // 事件操...
2019-07-12 10:15:21
173
原创 Springboot2.X解决pagehelper分页不生效的问题
首先springboot版本一定要是2.0看pom原来我引入的pagehelper是dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <...
2019-06-02 18:19:08
3559
原创 Cannot resolve method 'setShiftingMode(boolean)解决办法
在写安卓导航底部导航仪时候, 使用 下行itemView.setShiftingMode(false); itemView.setChecked(itemView.getItemData().isChecke。时,就会出现itemView.setShiftingMode(false); itemView.setChecked(itemView.getItemData().isChecke。...
2019-05-19 20:41:40
2159
原创 搭建andriod后台Springboot服务器
第一步 搭建后台服务器。 这里用到springboot; 里面应用了JPA查找数据库的,这里需要你会使用springboot,不会springboot就没必要看了哈。1.创建springboot项目,不会创建的百度一下哦2.pom配置:<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.ap...
2019-05-11 22:49:36
4675
原创 springboot 项目关于application.properties配置
#端口号server.port=8080server.servlet.context-path=/cashbook#数据库配置spring.datasource.url=jdbc:mysql://localhost:3306/cashbook?serverTimezone=UTC&characterEncoding=UTF-8spring.datasource.username=...
2019-05-11 18:10:10
365
原创 安卓通过json格式将数据传到服务器(后端)。
1.后端返回值要是json格式,2.安卓端要以json格式传到服务器创建 andriod项目在 build.gradle下面添加 两个jar包implementation 'commons-httpclient:commons-httpclient:3.1' implementation 'com.alibaba:fastjson:1.2.44'下面是一个写的完成安卓将数...
2019-05-11 17:53:28
6933
转载 Json字符串转对象和转List集合操作
实体和JSON互转工具类public class JsonUtil { /** * JSON 转 POJO */ public static <T> T getObject(String pojo, Class<T> tclass) { try { return JSONObje...
2019-05-09 20:29:49
349
原创 The alias 'Criterion' is already mapped to the value 'com.lucas.cashbook.pojo.UserExample$Criterion'
这个我没有搞清楚什么原因,这是之前的mybatis依赖版本是 2.0.1 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId>...
2019-05-09 10:22:49
949
转载 java.net.ConnectException: failed to connect to /127.0.1.1 (port 8080)的解决办法
你的第一反应可能是某出代码有问题或者是清单文件中某个权限忘加了,其实不是这样的。原来模拟器默认把127.0.0.1和localhost当做本身了,在模拟器上可以用10.0.2.2代替127.0.0.1和localhost,另外如果是在局域网环境可以用 192.168.0.x或者192.168.1.x(根据具体配置)连接本机,这样应该就不会报错了。...
2019-05-08 09:35:35
2784
原创 thymeleaf关于onclick
双参数<a th:href="@{#}" th:"addOrderItem([[${c.id}]],[[${session.user.userName}]]);" ></a>单参数<a th:href="@{#}" th:"editOrderItem([[${c.id}]]);" >
2019-04-17 20:34:54
537
转载 org.springframework.orm.hibernate3.HibernateSystemException: Exception occurred inside setter of com
数据库中某字段为空时报错为在进行查询时,发现数据库内一条数据的某一个字段为空null时,控制台会报这个错。但是在数据库里面却可以正常查询。进行查找发现,是对应实体类的相应字段是基本数据类型,在查询结果为空的时候无法set值。解决办法,将基本数据类型转换成包装类。(如基本数据类型:int,包装类:Integer)因为包装类是一个类,允许为空null。...
2019-04-11 20:06:21
656
原创 HibernateTemplate更新报错500 java.lang.reflect.InvocationTargetException,java.lang.StackOverflowError
查看报错信息 java.lang.reflect.InvocationTargetException sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62...
2019-04-11 11:51:41
395
原创 user is not mapped [from user where userName=? and password=?]; nested exception is org.hibernate.hq
SSH关于通过User登录user is not mapped [from user where userName=? and password=?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: user is not mapped [from user where userName=? and password...
2019-04-09 21:50:47
1312
原创 ajax总是返回error和返回的结果总是Object类型
ajax与后端数据的传递最后总是调到error:function()可能是因为:缺少json的jar包pom jar配置: <!--前三个是ajax--> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>j...
2019-03-19 20:11:56
2550
原创 ssm项目使用Ajax。
**关于ssm项目使用Ajax**首先pom配置 ajax<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.8.1<...
2019-03-19 20:04:26
1567
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人