摘要: 1)修改pom.xml ,添加依赖 <!-- 身份验证 --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> </dependency 阅读全文
posted @ 2019-11-14 22:40 孤独的根号er 阅读(425) 评论(0) 推荐(0) 编辑
摘要: angular介绍: AngularJS [1] 诞生于2009年,由Misko Hevery 等人创建,后为Google所收购。是一款优秀的前端JS框架,已经被用于Google的多款产品当中。AngularJS有着诸多特性,最为核心的是:MVC(Model–view–controller)、模块化 阅读全文
posted @ 2019-11-13 23:13 孤独的根号er 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 基础设施搭建 相关依赖 如果开发普通 Java 程序的的话,你需要可能需要像下面这样依赖: <dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> <ve 阅读全文
posted @ 2019-11-11 22:26 孤独的根号er 阅读(904) 评论(0) 推荐(0) 编辑
摘要: 服务器1: application.yml配置文件: server: port: 8777eureka: instance: hostname: EurekaServer8777 client: register-with-eureka: false fetch-registry: false se 阅读全文
posted @ 2019-11-07 23:06 孤独的根号er 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Swagger2配置文件: @Configuration@EnableSwagger2public class SwaggerConfig { private ApiInfo apiInfo(){ return new ApiInfoBuilder().title("增删改的restful风格") 阅读全文
posted @ 2019-11-05 22:35 孤独的根号er 阅读(252) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2019-11-04 23:29 孤独的根号er 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 1.创建实体类 package com.offcn.po; import lombok.AllArgsConstructor;import lombok.Data;import lombok.NoArgsConstructor; @Data@NoArgsConstructor@AllArgsCons 阅读全文
posted @ 2019-11-04 23:25 孤独的根号er 阅读(265) 评论(0) 推荐(0) 编辑