修改了其中接口的一些错误
This commit is contained in:
parent
99b24e35ec
commit
6af74df222
@ -13,7 +13,7 @@ public class MyCorsConfig {
|
|||||||
public CorsFilter corsFilter(){
|
public CorsFilter corsFilter(){
|
||||||
CorsConfiguration corsConfiguration = new CorsConfiguration();
|
CorsConfiguration corsConfiguration = new CorsConfiguration();
|
||||||
//允许跨域的地址
|
//允许跨域的地址
|
||||||
corsConfiguration.addAllowedOrigin("http://localhost:8888");
|
corsConfiguration.addAllowedOrigin("http://localhost:5000");
|
||||||
//http://localhost:8080
|
//http://localhost:8080
|
||||||
//是否发送cookie信息
|
//是否发送cookie信息
|
||||||
corsConfiguration.setAllowCredentials(true);
|
corsConfiguration.setAllowCredentials(true);
|
||||||
|
@ -31,7 +31,7 @@ public class AnimalController {
|
|||||||
QueryWrapper<Animal> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<Animal> queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.eq("a_id",aid);
|
queryWrapper.eq("a_id",aid);
|
||||||
Animal one = iAnimalService.getOne(queryWrapper);
|
Animal one = iAnimalService.getOne(queryWrapper);
|
||||||
R.success(one);
|
return R.success(one);
|
||||||
}
|
}
|
||||||
List<Animal> list = iAnimalService.list();
|
List<Animal> list = iAnimalService.list();
|
||||||
return R.success(list);
|
return R.success(list);
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
# 应用服务 WEB 访问端口
|
# 应用服务 WEB 访问端口
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
@ -5,4 +6,5 @@ spring:
|
|||||||
url: jdbc:mysql://localhost:3306/zoo
|
url: jdbc:mysql://localhost:3306/zoo
|
||||||
username: root
|
username: root
|
||||||
password: 83363083a
|
password: 83363083a
|
||||||
|
server:
|
||||||
|
port: 8888
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user