完善配置
This commit is contained in:
parent
8ae0239aa0
commit
d53440c8f8
@ -1,4 +1,7 @@
|
||||
# ZooSystem
|
||||
# 动物信息管理系统
|
||||
|
||||
该项目的前端项目地址: [动物信息管理系统前端](http://gitea.kongxq.fun/kxq/zoo-frontend)
|
||||
|
||||
#### **登录接口**
|
||||
|
||||
请求:post请求
|
||||
|
@ -47,10 +47,10 @@ public class AccountController {
|
||||
public R update(@RequestBody Account account){
|
||||
QueryWrapper<Account> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("id",account.getId());
|
||||
boolean b = iAccountService.update(account,queryWrapper);
|
||||
if (b){
|
||||
return R.success("修改成功");
|
||||
}
|
||||
// boolean b = iAccountService.update(account,queryWrapper);
|
||||
// if (b){
|
||||
// return R.success("修改成功");
|
||||
// }
|
||||
return R.error("修改失败");
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,6 @@
|
||||
# 应用服务 WEB 访问端口
|
||||
spring:
|
||||
profiles:
|
||||
active: prod # 默认使用开发环境配置
|
||||
active: dev # 默认使用开发环境配置
|
||||
server:
|
||||
port: 8888
|
||||
|
@ -1,8 +0,0 @@
|
||||
|
||||
# 应用服务 WEB 访问端口
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/zoo
|
||||
username: root
|
||||
password: 123456
|
@ -1,8 +0,0 @@
|
||||
|
||||
# 应用服务 WEB 访问端口
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_NAME}
|
||||
username: ${DB_USERNAME}
|
||||
password: ${DB_PASSWORD}
|
@ -1,7 +0,0 @@
|
||||
|
||||
# 应用服务 WEB 访问端口
|
||||
spring:
|
||||
profiles:
|
||||
active: prod # 默认使用开发环境配置
|
||||
server:
|
||||
port: 8888
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zoo.mapper.AccountMapper">
|
||||
|
||||
</mapper>
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zoo.mapper.AnimalMapper">
|
||||
|
||||
</mapper>
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zoo.mapper.ArchiveMapper">
|
||||
|
||||
</mapper>
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zoo.mapper.BreedingplanMapper">
|
||||
|
||||
</mapper>
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zoo.mapper.HealthMapper">
|
||||
|
||||
</mapper>
|
@ -1,3 +0,0 @@
|
||||
artifactId=zooSystemDemo
|
||||
groupId=com.zoo
|
||||
version=0.0.1-SNAPSHOT
|
@ -1,40 +0,0 @@
|
||||
com\zoo\ThreadTest\Test1.class
|
||||
com\zoo\service\IArchiveService.class
|
||||
com\zoo\ThreadTest\Test.class
|
||||
com\zoo\mapper\HealthMapper.class
|
||||
com\zoo\service\impl\AccountServiceImpl.class
|
||||
com\zoo\controller\LoginController.class
|
||||
com\zoo\service\IAccountService.class
|
||||
com\zoo\service\impl\BreedingplanServiceImpl.class
|
||||
com\zoo\controller\ArchiveController.class
|
||||
com\zoo\mapper\ArchiveMapper.class
|
||||
com\zoo\service\IHealthService.class
|
||||
com\zoo\entity\Archive.class
|
||||
com\zoo\mapper\AnimalMapper.class
|
||||
com\zoo\service\impl\HealthServiceImpl.class
|
||||
com\zoo\config\WebMvcConfig.class
|
||||
com\zoo\ThreadTest\A.class
|
||||
com\zoo\ZooSystemApplication.class
|
||||
com\zoo\controller\HealthController.class
|
||||
com\zoo\service\impl\AnimalServiceImpl.class
|
||||
com\zoo\service\IBreedingplanService.class
|
||||
com\zoo\common\JacksonObjectMapper.class
|
||||
com\zoo\ThreadTest\Test2$1.class
|
||||
com\zoo\mapper\AccountMapper.class
|
||||
com\zoo\ThreadTest\C.class
|
||||
com\zoo\ThreadTest\Test2.class
|
||||
com\zoo\entity\Health.class
|
||||
com\zoo\common\R.class
|
||||
com\zoo\service\IAnimalService.class
|
||||
com\zoo\ThreadTest\B.class
|
||||
com\zoo\entity\Animal.class
|
||||
com\zoo\entity\Breedingplan.class
|
||||
com\zoo\entity\Account.class
|
||||
com\zoo\controller\AccountController.class
|
||||
com\zoo\config\MyCorsConfig.class
|
||||
com\zoo\controller\AnimalController.class
|
||||
com\zoo\CodeGenerator.class
|
||||
com\zoo\config\MybatisPlusConfig.class
|
||||
com\zoo\mapper\BreedingplanMapper.class
|
||||
com\zoo\controller\BreedingplanController.class
|
||||
com\zoo\service\impl\ArchiveServiceImpl.class
|
@ -1,36 +0,0 @@
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\CodeGenerator.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\common\JacksonObjectMapper.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\common\R.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\config\MybatisPlusConfig.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\config\MyCorsConfig.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\config\WebMvcConfig.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\controller\AccountController.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\controller\AnimalController.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\controller\ArchiveController.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\controller\BreedingplanController.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\controller\HealthController.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\controller\LoginController.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\entity\Account.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\entity\Animal.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\entity\Archive.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\entity\Breedingplan.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\entity\Health.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\mapper\AccountMapper.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\mapper\AnimalMapper.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\mapper\ArchiveMapper.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\mapper\BreedingplanMapper.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\mapper\HealthMapper.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\IAccountService.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\IAnimalService.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\IArchiveService.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\IBreedingplanService.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\IHealthService.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\impl\AccountServiceImpl.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\impl\AnimalServiceImpl.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\impl\ArchiveServiceImpl.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\impl\BreedingplanServiceImpl.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\service\impl\HealthServiceImpl.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\ThreadTest\Test.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\ThreadTest\Test1.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\ThreadTest\Test2.java
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\main\java\com\zoo\ZooSystemApplication.java
|
@ -1 +0,0 @@
|
||||
ZooSystemApplicationTests.class
|
@ -1 +0,0 @@
|
||||
D:\Apps\Development\Projects\Old\zoo\zoo-backend\src\test\java\ZooSystemApplicationTests.java
|
@ -1,5 +0,0 @@
|
||||
# Created at 2024-12-20T21:38:33.990
|
||||
Boot Manifest-JAR contains absolute paths in classpath 'D:\Apps\Development\DevTools\Maven\mvn_repo\org\apache\maven\surefire\surefire-booter\3.2.5\surefire-booter-3.2.5.jar'
|
||||
Hint: <argLine>-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
|
||||
'other' has different root
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,69 +0,0 @@
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: ZooSystemApplicationTests
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.111 s <<< FAILURE! -- in ZooSystemApplicationTests
|
||||
ZooSystemApplicationTests -- Time elapsed: 0.111 s <<< ERROR!
|
||||
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
|
||||
at org.springframework.util.Assert.state(Assert.java:76)
|
||||
at org.springframework.boot.test.context.SpringBootTestContextBootstrapper.getOrFindConfigurationClasses(SpringBootTestContextBootstrapper.java:236)
|
||||
at org.springframework.boot.test.context.SpringBootTestContextBootstrapper.processMergedContextConfiguration(SpringBootTestContextBootstrapper.java:152)
|
||||
at org.springframework.test.context.support.AbstractTestContextBootstrapper.buildMergedContextConfiguration(AbstractTestContextBootstrapper.java:393)
|
||||
at org.springframework.test.context.support.AbstractTestContextBootstrapper.buildDefaultMergedContextConfiguration(AbstractTestContextBootstrapper.java:309)
|
||||
at org.springframework.test.context.support.AbstractTestContextBootstrapper.buildMergedContextConfiguration(AbstractTestContextBootstrapper.java:262)
|
||||
at org.springframework.test.context.support.AbstractTestContextBootstrapper.buildTestContext(AbstractTestContextBootstrapper.java:107)
|
||||
at org.springframework.boot.test.context.SpringBootTestContextBootstrapper.buildTestContext(SpringBootTestContextBootstrapper.java:102)
|
||||
at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:137)
|
||||
at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:122)
|
||||
at org.junit.jupiter.engine.execution.ExtensionValuesStore.lambda$getOrComputeIfAbsent$4(ExtensionValuesStore.java:86)
|
||||
at org.junit.jupiter.engine.execution.ExtensionValuesStore$MemoizingSupplier.computeValue(ExtensionValuesStore.java:223)
|
||||
at org.junit.jupiter.engine.execution.ExtensionValuesStore$MemoizingSupplier.get(ExtensionValuesStore.java:211)
|
||||
at org.junit.jupiter.engine.execution.ExtensionValuesStore$StoredValue.evaluate(ExtensionValuesStore.java:191)
|
||||
at org.junit.jupiter.engine.execution.ExtensionValuesStore$StoredValue.access$100(ExtensionValuesStore.java:171)
|
||||
at org.junit.jupiter.engine.execution.ExtensionValuesStore.getOrComputeIfAbsent(ExtensionValuesStore.java:89)
|
||||
at org.junit.jupiter.engine.execution.ExtensionValuesStore.getOrComputeIfAbsent(ExtensionValuesStore.java:93)
|
||||
at org.junit.jupiter.engine.execution.NamespaceAwareStore.getOrComputeIfAbsent(NamespaceAwareStore.java:61)
|
||||
at org.springframework.test.context.junit.jupiter.SpringExtension.getTestContextManager(SpringExtension.java:294)
|
||||
at org.springframework.test.context.junit.jupiter.SpringExtension.beforeAll(SpringExtension.java:113)
|
||||
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllCallbacks$10(ClassBasedTestDescriptor.java:381)
|
||||
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
||||
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllCallbacks(ClassBasedTestDescriptor.java:381)
|
||||
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:205)
|
||||
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:80)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:148)
|
||||
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
||||
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
||||
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
||||
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
|
||||
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
|
||||
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
|
||||
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
|
||||
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
|
||||
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
|
||||
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
|
||||
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
|
||||
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
|
||||
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
|
||||
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
|
||||
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
|
||||
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
|
||||
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
|
||||
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
|
||||
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
|
||||
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
|
||||
at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:56)
|
||||
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184)
|
||||
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148)
|
||||
at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122)
|
||||
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
|
||||
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
|
||||
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
|
||||
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
|
||||
|
Binary file not shown.
BIN
target/zoo.jar
BIN
target/zoo.jar
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user