![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
上岸嘘嘘的鱼
上岸休息一下
展开
-
Spring 入门教程(一)创建一个maven工程
首先创建一个maven 1.点击file – new – Project 进入创建项目窗口 2.选择mave – Create from archetype – webapp 3.填入项目名称以及版本号 4.点击界面右上角的Project Structure 编辑项目模块 标记对应的文件夹(先创建test 文件夹,然后标记为测试文件夹) 5。编辑pom的xml文件(原创 2018-02-01 21:34:23 · 342 阅读 · 0 评论 -
Spring 入门(二)创建spring mvc 项目
因为项目比较简单就就粗略的写了~1.首先创建一个maven web项目2.在pom 文件中引入相应的sping 依赖 pom :project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="h原创 2018-02-04 13:17:42 · 234 阅读 · 0 评论 -
Spring 入门(三)创建spring mvc +spring jdbc 项目
首先创建一个spring mvc 项目 http://blog.csdn.net/qq_32117469/article/details/79252153 pom文件添加相关依赖project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"原创 2018-02-07 21:01:25 · 177 阅读 · 0 评论 -
srping cloud Ribbon 自定义负载均衡
1.自定义规则public class MyRule implements IRule { private ILoadBalancer lb; public Server choose(Object key) { System.out.println("这是自定义的规则类"); Random r = new Random(); ...原创 2018-04-30 10:20:44 · 130 阅读 · 0 评论 -
spring cloud feign 1 创建注意事项
如果是Json请求要加加上 @Headers(“Content-Type: application/json”) (@Param(“id”) 注意加上 @RequestLine("GET /call/{id}") public Police getPerson(@Param("id")Integer id); @RequestLine("POST /create...原创 2018-04-30 13:00:05 · 111 阅读 · 0 评论