-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding vectorStoreClass and embeddingModelClass to SiloEntity
- Loading branch information
Showing
4 changed files
with
56 additions
and
6 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
28 changes: 28 additions & 0 deletions
28
backend/src/main/java/ai/dragon/listener/StartupApplicationListener.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,28 @@ | ||
package ai.dragon.listener; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext; | ||
import org.springframework.context.ApplicationListener; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.context.event.ContextRefreshedEvent; | ||
import org.springframework.lang.NonNull; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Profile("!test") | ||
public class StartupApplicationListener implements ApplicationListener<ContextRefreshedEvent> { | ||
@Autowired | ||
private ServletWebServerApplicationContext webServerAppCtxt; | ||
|
||
@Override | ||
public void onApplicationEvent(@NonNull ContextRefreshedEvent event) { | ||
String scheme = "http"; | ||
String host = "localhost"; | ||
int port = webServerAppCtxt.getWebServer().getPort(); | ||
|
||
System.out.println("================================================"); | ||
System.out.println(String.format("APP URL\t\t : %s://%s:%d/", scheme, host, port)); | ||
System.out.println(String.format("Swagger UI\t : %s://%s:%d/api/swagger-ui.html", scheme, host, port)); | ||
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