上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 建立 springboot项目 勾选mysql web等 添加activiti的jar的pom坐标 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi= 阅读全文
posted @ 2021-04-01 15:01 琴声清幽 阅读(153) 评论(0) 推荐(0) 编辑
摘要: http://dist.springsource.com/release/TOOLS/update/e4.18 首先打开eclipse , 查到版本号为4.18后, 然后install new sofitware,安装网址,http://dist.springsource.com/release/T 阅读全文
posted @ 2021-04-01 14:52 琴声清幽 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 打开 onedrive,在office处,取消勾选。就可以了。 阅读全文
posted @ 2021-03-31 14:40 琴声清幽 阅读(1207) 评论(1) 推荐(1) 编辑
摘要: 首先需要产生ssh2的公钥和密钥。 在ssh2的对话框,点击如图红圈,一定点击保存,然后到下一个图的位置,查看是否保存了pub文件。然后打开pub文件,把他复制到gitee网站的ssh公钥设置里 老雷老师的地址: https://gitee.com/leijharvin 在导入git项目时,用sma 阅读全文
posted @ 2021-03-28 17:03 琴声清幽 阅读(284) 评论(0) 推荐(0) 编辑
摘要: java -XX:+PrintCommandLineFlags -version 其中得出的max 内存除以1024,得到按兆为单位。 然后用glances,查看, 如果没有glances命令,用yum 安装一下,如果安装不到,更新一下repo的源和附加源。 默认java的一个进程占用内存总量的1/ 阅读全文
posted @ 2021-03-27 08:41 琴声清幽 阅读(2886) 评论(0) 推荐(0) 编辑
摘要: 实战的SessionUtil的方法、 阅读全文
posted @ 2021-03-22 08:09 琴声清幽 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 在新的springboot项目中,如果在mybatis中使用了ehcache后,再第二次使用ehcache,会提示错误 Another CacheManager with same name 'default' already exists in the same VM. Please provid 阅读全文
posted @ 2021-03-17 10:14 琴声清幽 阅读(1822) 评论(0) 推荐(0) 编辑
摘要: 实验目的,测试ehcache 关键出错误的地方, 1,数据库驱动,url地址写错,最后界别是?,不是斜杠,否则报告字符串too long的错误。druid的默认连接池初始化为1,即可。 2,入口启动类要加入@MapperScan(basePackages = {"cn.taotao.dao"}), 阅读全文
posted @ 2021-03-16 15:29 琴声清幽 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 之前,在eclipse 2019中,新建springboot项目 pom出错,需要改 <!-- <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> --> 现在这句可以废弃不用了,默认的sts4带的,就可以。 在maven打jar包, 阅读全文
posted @ 2021-03-15 14:28 琴声清幽 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 打开官网 https://spring.io/tools 找到windows版本的,下载 然后在命令行,java -jar 解压,即可。 实测,和之前的spring 2019-3 月版本的,完全兼容,没出大规模报告error的错误。 另外在新建springboot 的项目的时候,也没出现maven 阅读全文
posted @ 2021-03-07 20:15 琴声清幽 阅读(2856) 评论(0) 推荐(0) 编辑
摘要: 原因是pom文件配置 在jar打包时,需要指明版本maven-plugin的版本。 <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>1.4.2 阅读全文
posted @ 2021-03-03 16:09 琴声清幽 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 碰到的坑, 一个是 service(若没有实现类)不能实现dao接口,否则报错。直接注入就好。若实现了dao接口,会包内存溢出错误,将进行无限循环。 二是,在启动类上,需要加入扫描mapper的package名称,否则报 mapper里面的bean没有实例化。 在controller里,映射文件,不 阅读全文
posted @ 2021-03-02 20:30 琴声清幽 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 首先,新建springboot文件,引入pom文件 <!-- https://mvnrepository.com/artifact/org.mybatis.generator/mybatis-generator-core --> <dependency> <groupId>org.mybatis.g 阅读全文
posted @ 2021-03-02 17:05 琴声清幽 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 事务注解@Transactional 可以标注到mapper的dao接口上,或者service的接口上。两者均可。 首先建立一个springboot的项目, 引入pom,需要注意的是,tomcat包,aop包,druid数据源包,jdbc包,mybatis包,servlet,jsp,jstl包 <! 阅读全文
posted @ 2021-03-02 16:59 琴声清幽 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 可以绑定多ssl域名认证证书 建立2个server节点,然后把证书拷贝到conf目录下的cert目录里。接着配置,就可以了。 前端域名解析,还是老样子,可以cname,也可以是a。 ssl解析后,将其指向到反向代理,具体配置看另一篇博客。 server{ listen 443 ssl; server 阅读全文
posted @ 2021-03-02 08:54 琴声清幽 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 参考文章 1. 安装nignx1.14,并且打补丁,反向代理健康监控,ssl,解决自启动报pid错误 2. nginx 反向代理,和ssl重定向。 3. springboot 以jar包形式在linux后台运行 //有详细的启动脚本,1> dev/null 2>xxx.log & 安装nignx n 阅读全文
posted @ 2021-02-25 10:15 琴声清幽 阅读(112) 评论(0) 推荐(0) 编辑
摘要: nohup java -jar xxxxx.jar >temp.txt & nohup java -jar xxxxx.jar >temp.log 2>&1 & 第一个一直启动不成功,我用第二种启动.,我实际操作,第一种第二种都可以。第二个意思是将错误输出合并到标准输出,写入到temp.log 文件 阅读全文
posted @ 2021-02-23 17:28 琴声清幽 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 原始的web.xml里有4个配置,上篇文章已经把springmvc的解决了 1. spring redis session的filter 2. shiro的filter 3. 编码字符集filter 4. 和一个监听器 代码如下,其中第1,3,4个默认已经集成,不需要再配置, <?xml versi 阅读全文
posted @ 2021-02-22 16:50 琴声清幽 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 上篇中,因为ehcache的单例原因,这里提供了另外一种方法。 用redis作为 shiro的密码凭证器的记载体。 package cn.taotao.shiro.service; import java.io.IOException; import java.text.SimpleDateForm 阅读全文
posted @ 2021-02-22 13:36 琴声清幽 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 出现的问题, 1.没有把jsp页面打进去 2.版本问题导致编译错误 3.指定主口文件 以下为修改好的pom 修改pom文件, <resources> <resource> <directory>src/main/resources</directory> <filtering>false</filt 阅读全文
posted @ 2021-02-20 15:15 琴声清幽 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 报错为 EhCacheManager 的bean,存在重名的情况。 原因是2.5版本后,系统只支持singlton模式 解决办法 <properties> <java.version>1.8</java.version> <maven-jar-plugin.version>3.1.1</maven- 阅读全文
posted @ 2021-02-20 14:02 琴声清幽 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1. jsp页面的列表,没有值。 原因,mapper的sql语句不兼容,在取值时,之前ssm时,用的是zhouyiAuthor.id,到 springboot时,用的是和接口文件一致的命名,没有中间的点。即authorId。 <select id="getZhouyiContentsByAuthor 阅读全文
posted @ 2021-02-19 15:22 琴声清幽 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 主要是修改pom文件,配置bulid的选项 一个是把资源包含进来 一个是降低maven plugins的版本 指定maven plugins的mainClass 附录pom的build部分 <build> <resources> <resource> <directory>src/main/reso 阅读全文
posted @ 2021-02-18 20:43 琴声清幽 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 引入依赖 <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter --> <dependency> <groupId>org.mybatis.spring.boot</gr 阅读全文
posted @ 2021-02-16 21:03 琴声清幽 阅读(54) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.2.4</version> </dependency> <dependency> <gr 阅读全文
posted @ 2021-02-15 22:47 琴声清幽 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1.Servlet的注册 :JavaEE Web.xml <servlet> <servlet-name>userServlet</servlet-name> <servlet-class>cn.taotao.UserServlet</servlet-class> </servlet> <servl 阅读全文
posted @ 2021-02-12 16:30 琴声清幽 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 建立src/main/webapp目录,必须是这个目录,其他目录结构不可以。 然后在webapp目录下建立index.jsp 然后修改application.properties spring.mvc.view.prefix=/ spring.mvc.view.suffix=.jsp 在pom中 < 阅读全文
posted @ 2021-02-09 20:38 琴声清幽 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 在spring5以上的版本中,已经集成了redis session的访问控制,只要配置好,不用编码,即可实现redis的session共享。 建立web项目 引入maven <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="h 阅读全文
posted @ 2021-02-09 11:00 琴声清幽 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 1. 引入依赖 <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-aop --> <dependency> <groupId>org.springframework.boot</g 阅读全文
posted @ 2021-02-08 20:07 琴声清幽 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: 默认支持html,不支持jsp, 默认的目录在 src/main/resources/static 下,可以直接访问 如index.html,可以默认的首页。 这样的默认目录有4个。分别是 src/main/resources/static 优先级 3 src/main/resources/reso 阅读全文
posted @ 2021-02-08 14:26 琴声清幽 阅读(91) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页