-
Notifications
You must be signed in to change notification settings - Fork 0
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
DirtyBit
committed
May 17, 2024
1 parent
b48c03f
commit 7d13904
Showing
8 changed files
with
48 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
target/ | ||
test/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
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
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,5 @@ | ||
package com.minis; | ||
|
||
public interface BaseService { | ||
void test(); | ||
} |
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,5 @@ | ||
package com.minis; | ||
|
||
public interface BasebaseService { | ||
void test(); | ||
} |
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,21 @@ | ||
package com.minis.Impl; | ||
|
||
import com.minis.AService; | ||
import com.minis.BaseService; | ||
import com.minis.BasebaseService; | ||
import com.minis.beans.factory.annotation.Autowired; | ||
import lombok.Setter; | ||
|
||
@Setter | ||
public class BaseServiceImpl implements BaseService { | ||
|
||
@Autowired | ||
private BasebaseService basebaseService; | ||
|
||
@Override | ||
public void test() { | ||
System.out.println("----------------"); | ||
basebaseService.test(); | ||
System.out.println("----------------"); | ||
} | ||
} |
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,17 @@ | ||
package com.minis.Impl; | ||
|
||
import com.minis.AService; | ||
import com.minis.BasebaseService; | ||
import lombok.Setter; | ||
|
||
@Setter | ||
public class BasebaseServiceImpl implements BasebaseService { | ||
|
||
// 循环注入 糟糕的代码才会如此,没有层级观念的项目,spring6开始限制 | ||
private AService as; | ||
|
||
@Override | ||
public void test() { | ||
System.out.println("I am basebaseService"); | ||
} | ||
} |
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