随笔分类 -  springboot

springboot 发布
摘要:转载:http://www.ityouknow.com/springboot/2017/05/09/springboot-deploy.html 有很多网友会时不时的问我,spring boot项目如何测试,如何部署,在生产中有什么好的部署方案吗?这篇文章就来介绍一下spring boot 如何开发 阅读全文

posted @ 2018-04-26 16:28 凤鸣岐山 阅读(166) 评论(0) 推荐(0)

springboot的加载流程
摘要:在使用autowired,要在application的主类上加上扫描范围 阅读全文

posted @ 2018-04-25 15:39 凤鸣岐山 阅读(329) 评论(0) 推荐(0)

Maven
摘要:打开窗口:View->Too Windows->Maven Projects 一些常见错误总结 1、 Could not resolve dependencies for project: 解决方法:在parent项目上执行mvn clean install 阅读全文

posted @ 2018-04-20 14:27 凤鸣岐山 阅读(93) 评论(0) 推荐(0)

main的 启动和配置文件的读取
摘要:转载自:https://blog.csdn.net/weixin_40873368/article/details/78884690 (如侵权请留言,会删除) 1.建立简单的springboot项目 @SpringBootApplication public class Application { 阅读全文

posted @ 2018-04-19 20:49 凤鸣岐山 阅读(3427) 评论(0) 推荐(0)

freemarker 注意事项
摘要:1、调用linux是大小写敏感的 2、配置static和template是有默认配置的 3、数字是要自动加,号的,item.getId()?c,这样就不加,号了 阅读全文

posted @ 2018-04-18 16:49 凤鸣岐山 阅读(127) 评论(0) 推荐(0)

springboot idea debug 模式下启动特别忙,且无法访问
摘要:1、找一下java Method breakpoints的问题,要去掉这样的断点,就是四个点的。 阅读全文

posted @ 2018-03-20 15:27 凤鸣岐山 阅读(458) 评论(0) 推荐(0)

springboot Mybatis 一些写法
摘要:转载:http://www.skyz.cn/posts/Spring-Boot-Mybatis-common-annotation.html 有三种传参方式 @Param @Insert("INSERT INTO USER(NAME, AGE) VALUES(#{name}, #{age})") i 阅读全文

posted @ 2018-03-12 17:44 凤鸣岐山 阅读(179) 评论(0) 推荐(0)

springBoot集成redis的key,value序列化的相关问题
摘要:转载:https://www.cnblogs.com/gyjx2016/p/5893192.html 使用的是maven工程 springBoot集成redis默认使用的是注解,在官方文档中只需要2步; 1、在pom文件中引入即可 2、编写一个CacheService接口,使用redisCacheS 阅读全文

posted @ 2018-03-09 16:03 凤鸣岐山 阅读(4091) 评论(0) 推荐(0)

springboot 部署到外部的tomcat
摘要:转载 http://blog.csdn.net/qq_28988969/article/details/78135768 尽管Spring Boot项目会内置一个tomcat,仅只需通过一个简单的指令便可启动项目,但在生产环境下,我们还是习惯将项目发布到第三外的servlet容器中,下面将介绍如果将 阅读全文

posted @ 2018-02-11 15:14 凤鸣岐山 阅读(210) 评论(0) 推荐(0)

导航