随笔分类 - springboot
摘要:一、注解 (annotations) 列表 @SpringBootApplication:包含了 @ComponentScan、@Configuration 和 @EnableAutoConfiguration 注解。其中 @ComponentScan 让 spring Boot 扫描到 Confi
阅读全文
摘要:概要 在使用IDEA开发微服务的时候,微服务比较多,启动起来比较麻烦,下面介绍一下使用批量启动微服务的方法。 方法 编辑当前项目根目录下的 .idea\workspace.xml 文件。 找到 <component name="RunDashboard"> 在这个标签下增加: <option nam
阅读全文
摘要:Spring Boot中推荐使用Thymeleaf作为模板引擎.因为Thymeleaf提供了完美的SpringMVC支持. Thymeleaf是一个java类库,他是一个xml/xhtml/html5的模板引擎,可以作为mvc的web应用的view层。 我们把HTML页面放在classpath:/t
阅读全文
摘要:每次导入新项目就更改成默认的maven!!特别导入半天才发现简直气疯了!!于是百度了这个问题。 旧版本:Other Setting >Default Settings >设置maven >Apply >OK 新版方法:先file colse project关闭当前项目到启动页面 右下角点config
阅读全文
摘要:通过maven工程创建springboot项目 引入如下依赖 1 <!-- Inherit defaults from Spring Boot --> 2 3 <parent> 4 5 <groupId>org.springframework.boot</groupId> 6 7 <artifact
阅读全文

浙公网安备 33010602011771号