
Spring'boot
一名奋斗的程序猿
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Springboot的两种启动方式
1.直接在Controller类中添加主类启动2.将所有的Controller集中放置在App类中:必须要添加一个包扫描的注释:@ComponentScan(basePackages={" “,” "}原创 2019-03-05 14:12:05 · 451 阅读 · 0 评论 -
关于Springboot中静态资源的访问
1.一般是在classpath下创建一个resource下创建static或者静态网页的(html、css、js)访问路径的话是:http://localhost:8080/imags/123.jpg原创 2019-03-05 14:49:24 · 197 阅读 · 0 评论