-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
209 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
jcommon/ai/neo4j/src/test/java/run/mone/neo4j/test/anno/Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package run.mone.neo4j.test.anno; | ||
|
||
/** | ||
* @author [email protected] | ||
* @date 2024/8/21 16:06 | ||
*/ | ||
public @interface Test { | ||
} |
12 changes: 11 additions & 1 deletion
12
jcommon/ai/neo4j/src/test/java/run/mone/neo4j/test/m/PersonService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
package run.mone.neo4j.test.m; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import run.mone.neo4j.test.anno.Resource; | ||
import run.mone.neo4j.test.anno.RestController; | ||
import run.mone.neo4j.test.anno.Service; | ||
import run.mone.neo4j.test.m.cat.CatService; | ||
|
||
/** | ||
* @author [email protected] | ||
* @date 2024/8/16 10:16 | ||
*/ | ||
@Service | ||
@Slf4j | ||
public class PersonService { | ||
|
||
|
||
@Resource | ||
private CatService catService; | ||
|
||
|
||
//获取猫的数量 | ||
public int getCatCount() { | ||
log.info("info"); | ||
System.out.println("abc"); | ||
return catService.getCatCount(); | ||
} | ||
|
||
|
||
/** | ||
* 计算两数之和 | ||
* | ||
|
22 changes: 22 additions & 0 deletions
22
jcommon/ai/neo4j/src/test/java/run/mone/neo4j/test/m/PersonServiceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package run.mone.neo4j.test.m; | ||
|
||
import run.mone.neo4j.test.anno.Resource; | ||
import run.mone.neo4j.test.anno.Service; | ||
import run.mone.neo4j.test.anno.Test; | ||
|
||
/** | ||
* @author [email protected] | ||
* @date 2024/8/26 18:23 | ||
*/ | ||
@Service | ||
public class PersonServiceTest { | ||
|
||
@Resource | ||
private PersonService personService; | ||
|
||
@Test | ||
public void test1() { | ||
int res = personService.getCatCount(); | ||
System.out.println(res); | ||
} | ||
} |
10 changes: 6 additions & 4 deletions
10
...ava/run/mone/neo4j/test/m/CatService.java → ...run/mone/neo4j/test/m/cat/CatService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
package run.mone.neo4j.test.m; | ||
package run.mone.neo4j.test.m.cat; | ||
|
||
import run.mone.neo4j.test.anno.RestController; | ||
import lombok.extern.slf4j.Slf4j; | ||
import run.mone.neo4j.test.anno.Service; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author [email protected] | ||
* @date 2024/8/19 18:21 | ||
*/ | ||
@Service | ||
@Slf4j | ||
public class CatService { | ||
|
||
private Map<String,String> data = new HashMap<>(); | ||
private HashMap<String,String> data = new HashMap<>(); | ||
|
||
|
||
//获取小猫的数量 | ||
//获取小猫的数量 | ||
public int getCatCount() { | ||
log.info("abc"); | ||
System.out.println("123"); | ||
return data.size(); | ||
} | ||
|
||
|