![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring boot
wangwjtt
这个作者很懒,什么都没留下…
展开
-
第一个 Spring boot项目
建好Spring boot项目项目后配置build.gradle,添加Spring boot依赖 buildscript { ext { springBootVersion = '2.1.1.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.bo...原创 2018-12-04 11:11:47 · 127 阅读 · 0 评论 -
创建的springboot项目如果没有src/main/resources文件夹
这是刚创建的一个maven项目,由此可以看见,项目并没有存放配置文件的src/main/resources文件夹? 解决方案: (1)选中项目,右键单击,如图所示选择:Build Path --> Configure Build Path 选中src/main/java目录,然后点击Add Floder 选中main,然后点击下方的Create new Floder 然后输入reso...原创 2018-12-04 12:59:47 · 15835 阅读 · 0 评论 -
eclipse 配置 SpringBoot 环境
为 eclipse 安装 SpringBoot 插件 https://blog.csdn.net/haidaoxianzi/article/details/80660053原创 2018-12-04 08:58:19 · 409 阅读 · 0 评论 -
注解整理
@Responsebody:这个注解表示该方法的返回结果直接写入HTTP response body中。在使用@RequestMapping后,返回值通常解析为跳转路径。加上@responsebody后,返回结果直接写入HTTP response body中,不会被解析为跳转路径。比如异步请求,希望响应的结果是json数据,那么加上@responsebody后,就会直接返回json数据。 ...原创 2018-12-11 11:21:15 · 133 阅读 · 0 评论 -
springBoot+ajax
前台 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Insert title here</title> <scrip原创 2018-12-11 12:18:45 · 4534 阅读 · 1 评论 -
Spring boot——AOP、@Aspect例子
代码例子 Controller package com.springboot.chapter4.aspect.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; impo...原创 2019-01-10 08:27:59 · 757 阅读 · 0 评论 -
Spring boot——@DeclareParents例子
通过spring aop的@DeclareParents为某个类(及其所有子类)动态代理新增实现接口 本节代码 https://download.csdn.net/download/wangwjtt/10908155 修改上节代码(https://blog.csdn.net/wangwjtt/article/details/86210943) ,新增@DeclareParents注解 目录结构...原创 2019-01-10 11:19:27 · 892 阅读 · 3 评论