File tree Expand file tree Collapse file tree 10 files changed +86
-2
lines changed
src/main/java/com/baeldung Expand file tree Collapse file tree 10 files changed +86
-2
lines changed Original file line number Diff line number Diff line change 117117 </dependency >
118118 </dependencies >
119119
120+ <profiles >
121+ <profile >
122+ <id >chromadb</id >
123+ <activation >
124+ <activeByDefault >true</activeByDefault >
125+ </activation >
126+ <properties >
127+ <spring .boot.mainclass>com.baeldung.springai.chromadb.Application</spring .boot.mainclass>
128+ </properties >
129+ </profile >
130+ <profile >
131+ <id >assistant</id >
132+ <properties >
133+ <spring .boot.mainclass>com.baeldung.spring.ai.om.OrderManagementApplication</spring .boot.mainclass>
134+ </properties >
135+ </profile >
136+ <profile >
137+ <id >anthropic</id >
138+ <properties >
139+ <spring .boot.mainclass>com.baeldung.springai.anthropic.Application</spring .boot.mainclass>
140+ </properties >
141+ </profile >
142+ <profile >
143+ <id >deepseek</id >
144+ <properties >
145+ <spring .boot.mainclass>com.baeldung.springai.deepseek.Application</spring .boot.mainclass>
146+ </properties >
147+ </profile >
148+ <profile >
149+ <id >evaluator</id >
150+ <properties >
151+ <spring .boot.mainclass>com.baeldung.springai.evaluator.Application</spring .boot.mainclass>
152+ </properties >
153+ </profile >
154+ <profile >
155+ <id >hugging-face</id >
156+ <properties >
157+ <spring .boot.mainclass>com.baeldung.springai.huggingface.Application</spring .boot.mainclass>
158+ </properties >
159+ </profile >
160+ <profile >
161+ <id >mcp-server</id >
162+ <properties >
163+ <spring .boot.mainclass>com.baeldung.springai.mcp.server.ServerApplication</spring .boot.mainclass>
164+ </properties >
165+ </profile >
166+ <profile >
167+ <id >mcp-client</id >
168+ <properties >
169+ <spring .boot.mainclass>com.baeldung.springai.mcp.client.ClientApplication</spring .boot.mainclass>
170+ </properties >
171+ </profile >
172+ <profile >
173+ <id >amazon-nova</id >
174+ <properties >
175+ <spring .boot.mainclass>com.baeldung.springai.nova.Application</spring .boot.mainclass>
176+ </properties >
177+ </profile >
178+ <profile >
179+ <id >pgvector</id >
180+ <properties >
181+ <spring .boot.mainclass>com.baeldung.springai.semanticsearch.Application</spring .boot.mainclass>
182+ </properties >
183+ </profile >
184+ </profiles >
185+
120186 <build >
121187 <plugins >
122188 <plugin >
123189 <groupId >org.springframework.boot</groupId >
124190 <artifactId >spring-boot-maven-plugin</artifactId >
125191 <configuration >
126- <mainClass >com.baeldung.springai.chromadb.Application </mainClass >
192+ <mainClass >${spring.boot.mainclass} </mainClass >
127193 </configuration >
128194 </plugin >
129195 <plugin >
Original file line number Diff line number Diff line change 44import org .springframework .ai .autoconfigure .bedrock .converse .BedrockConverseProxyChatAutoConfiguration ;
55import org .springframework .ai .autoconfigure .ollama .OllamaAutoConfiguration ;
66import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
78import org .springframework .boot .SpringApplication ;
89import org .springframework .boot .autoconfigure .SpringBootApplication ;
910import org .springframework .context .annotation .PropertySource ;
1617@ SpringBootApplication (exclude = {
1718 OllamaAutoConfiguration .class ,
1819 AnthropicAutoConfiguration .class ,
20+ PgVectorStoreAutoConfiguration .class ,
1921 ChromaVectorStoreAutoConfiguration .class ,
2022 BedrockConverseProxyChatAutoConfiguration .class
2123})
Original file line number Diff line number Diff line change 22
33import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
44import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
5+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
56import org .springframework .boot .SpringApplication ;
67import org .springframework .boot .autoconfigure .SpringBootApplication ;
78import org .springframework .context .annotation .PropertySource ;
1314 */
1415@ SpringBootApplication (exclude = {
1516 OpenAiAutoConfiguration .class ,
17+ PgVectorStoreAutoConfiguration .class ,
1618 ChromaVectorStoreAutoConfiguration .class
1719})
1820@ PropertySource ("classpath:application-anthropic.properties" )
Original file line number Diff line number Diff line change 11package com .baeldung .springai .chromadb ;
22
33import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
4+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
45import org .springframework .boot .SpringApplication ;
56import org .springframework .boot .autoconfigure .SpringBootApplication ;
67import org .springframework .context .annotation .PropertySource ;
1112 * only needed by other articles in the shared codebase.
1213 */
1314@ SpringBootApplication (exclude = {
14- OpenAiAutoConfiguration .class
15+ OpenAiAutoConfiguration .class ,
16+ PgVectorStoreAutoConfiguration .class
1517})
1618@ PropertySource ("classpath:application-chromadb.properties" )
1719public class Application {
Original file line number Diff line number Diff line change 22
33import org .springframework .ai .autoconfigure .anthropic .AnthropicAutoConfiguration ;
44import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
5+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
56import org .springframework .boot .SpringApplication ;
67import org .springframework .boot .autoconfigure .SpringBootApplication ;
78import org .springframework .context .annotation .PropertySource ;
1314 */
1415@ SpringBootApplication (exclude = {
1516 AnthropicAutoConfiguration .class ,
17+ PgVectorStoreAutoConfiguration .class ,
1618 ChromaVectorStoreAutoConfiguration .class
1719})
1820@ PropertySource ("classpath:application-deepseek.properties" )
Original file line number Diff line number Diff line change 44import org .springframework .ai .autoconfigure .bedrock .converse .BedrockConverseProxyChatAutoConfiguration ;
55import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
66import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
78import org .springframework .boot .SpringApplication ;
89import org .springframework .boot .autoconfigure .SpringBootApplication ;
910import org .springframework .context .annotation .PropertySource ;
1617@ SpringBootApplication (exclude = {
1718 OpenAiAutoConfiguration .class ,
1819 AnthropicAutoConfiguration .class ,
20+ PgVectorStoreAutoConfiguration .class ,
1921 ChromaVectorStoreAutoConfiguration .class ,
2022 BedrockConverseProxyChatAutoConfiguration .class
2123})
Original file line number Diff line number Diff line change 44import org .springframework .ai .autoconfigure .bedrock .converse .BedrockConverseProxyChatAutoConfiguration ;
55import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
66import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
78import org .springframework .boot .SpringApplication ;
89import org .springframework .boot .autoconfigure .SpringBootApplication ;
910import org .springframework .context .annotation .PropertySource ;
1617@ SpringBootApplication (exclude = {
1718 OpenAiAutoConfiguration .class ,
1819 AnthropicAutoConfiguration .class ,
20+ PgVectorStoreAutoConfiguration .class ,
1921 ChromaVectorStoreAutoConfiguration .class ,
2022 BedrockConverseProxyChatAutoConfiguration .class
2123})
Original file line number Diff line number Diff line change 44import org .springframework .ai .autoconfigure .ollama .OllamaAutoConfiguration ;
55import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
66import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
78import org .springframework .boot .SpringApplication ;
89import org .springframework .boot .autoconfigure .SpringBootApplication ;
910import org .springframework .context .annotation .PropertySource ;
1617@ SpringBootApplication (exclude = {
1718 OllamaAutoConfiguration .class ,
1819 OpenAiAutoConfiguration .class ,
20+ PgVectorStoreAutoConfiguration .class ,
1921 ChromaVectorStoreAutoConfiguration .class ,
2022 BedrockConverseProxyChatAutoConfiguration .class
2123})
Original file line number Diff line number Diff line change 22
33import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
44import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
5+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
56import org .springframework .boot .SpringApplication ;
67import org .springframework .boot .autoconfigure .SpringBootApplication ;
78import org .springframework .context .annotation .PropertySource ;
1314 */
1415@ SpringBootApplication (exclude = {
1516 OpenAiAutoConfiguration .class ,
17+ PgVectorStoreAutoConfiguration .class ,
1618 ChromaVectorStoreAutoConfiguration .class
1719})
1820@ PropertySource ("classpath:application-mcp-server.properties" )
Original file line number Diff line number Diff line change 44import org .springframework .ai .autoconfigure .ollama .OllamaAutoConfiguration ;
55import org .springframework .ai .autoconfigure .openai .OpenAiAutoConfiguration ;
66import org .springframework .ai .autoconfigure .vectorstore .chroma .ChromaVectorStoreAutoConfiguration ;
7+ import org .springframework .ai .autoconfigure .vectorstore .pgvector .PgVectorStoreAutoConfiguration ;
78import org .springframework .boot .SpringApplication ;
89import org .springframework .boot .autoconfigure .SpringBootApplication ;
910import org .springframework .context .annotation .PropertySource ;
1718 OpenAiAutoConfiguration .class ,
1819 OllamaAutoConfiguration .class ,
1920 AnthropicAutoConfiguration .class ,
21+ PgVectorStoreAutoConfiguration .class ,
2022 ChromaVectorStoreAutoConfiguration .class
2123})
2224@ PropertySource ("classpath:application-nova.properties" )
You can’t perform that action at this time.
0 commit comments