-
Notifications
You must be signed in to change notification settings - Fork 2
edit DataSources,Oauth2 #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ | |
|
|
||
| @Configuration | ||
| @EnableTransactionManagement | ||
| @Profile("dev") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Search for prod profile datasource configurations
echo "=== Searching for @Profile(\"prod\") annotations ==="
rg -n '@Profile.*prod' --type java -A 3
echo -e "\n=== Searching for prod-specific configuration files ==="
fd -e yml -e yaml -e properties 'application-prod'
echo -e "\n=== Checking directory structure for datasource configs ==="
find . -path ./\.git -prune -o -type f -name '*DataSource*.java' -print
echo -e "\n=== Searching for all @Profile annotations in config directory ==="
rg -n '@Profile' backend/src/main/java/org/sejongisc/backend/common/config/ --type java -B 2 -A 2Repository: SISC-IT/sisc-web Length of output: 1646 🏁 Script executed: #!/bin/bash
echo "=== Searching for application configuration files ==="
fd -e yml -e yaml -e properties 'application' | grep -E 'application(-|\.)(yml|yaml|properties)$'
echo -e "\n=== Checking main resources directory ==="
ls -la backend/src/main/resources/ 2>/dev/null || echo "resources dir not found"
echo -e "\n=== Examining PrimaryDataSourceConfig.java ==="
cat -n backend/src/main/java/org/sejongisc/backend/common/config/PrimaryDataSourceConfig.java
echo -e "\n=== Examining StockDataSourceConfig.java ==="
cat -n backend/src/main/java/org/sejongisc/backend/common/config/StockDataSourceConfig.javaRepository: SISC-IT/sisc-web Length of output: 9475 🏁 Script executed: cat -n backend/src/main/resources/application.ymlRepository: SISC-IT/sisc-web Length of output: 477 Production datasource configuration is missing—application will fail to start in production. The Create 🤖 Prompt for AI Agents |
||
| @EnableJpaRepositories( | ||
| basePackages = "org.sejongisc.backend", | ||
| entityManagerFactoryRef = "primaryEntityManagerFactory", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder; | ||
| import org.springframework.context.annotation.Bean; | ||
| import org.springframework.context.annotation.Configuration; | ||
| import org.springframework.context.annotation.Profile; | ||
| import org.springframework.data.jpa.repository.config.EnableJpaRepositories; | ||
| import org.springframework.orm.jpa.JpaTransactionManager; | ||
| import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean; | ||
|
|
@@ -21,6 +22,7 @@ | |
|
|
||
| @Configuration | ||
| @EnableTransactionManagement | ||
| @Profile("dev") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Find all datasource-related config files
fd -type f -name '*DataSourceConfig.java' backend/src/main/java/
# Check for all profile annotations in config directory
rg -n '@Profile' backend/src/main/java/org/sejongisc/backend/common/config/ -A 2 -B 1
# Look for application configuration files
fd -type f -name 'application*.yml' -o -name 'application*.properties' backend/src/main/resources/Repository: SISC-IT/sisc-web Length of output: 1384 🏁 Script executed: #!/bin/bash
# Read the StockDataSourceConfig file
cat -n backend/src/main/java/org/sejongisc/backend/common/config/StockDataSourceConfig.java
# Read the PrimaryDataSourceConfig file
cat -n backend/src/main/java/org/sejongisc/backend/common/config/PrimaryDataSourceConfig.java
# Check for all config files in the config directory
ls -la backend/src/main/java/org/sejongisc/backend/common/config/Repository: SISC-IT/sisc-web Length of output: 9410 🏁 Script executed: #!/bin/bash
# Find all application configuration files
find backend/src/main/resources -name "application*.yml" -o -name "application*.properties" | sort
# Read the main application.yml
cat backend/src/main/resources/application.yml
# Check if there's an application-prod file
find backend/src/main/resources -name "application-prod*"
# Check for other profile-specific configs
ls -la backend/src/main/resources/Repository: SISC-IT/sisc-web Length of output: 639 🏁 Script executed: #!/bin/bash
# Check if there are any other Config classes that might provide datasource for prod
rg -n '@Configuration' backend/src/main/java/org/sejongisc/backend/common/config/ -A 5
# Search for any prod-specific datasource beans in the entire codebase
rg -n '@Profile.*prod' backend/src/main/java/ -A 3
# Check if there are conditional beans or default configurations
rg -n '@ConditionalOnProfile|@ConditionalOnMissingBean' backend/src/main/java/org/sejongisc/backend/common/config/Repository: SISC-IT/sisc-web Length of output: 5535 Stock 데이터소스 구성이 프로덕션 환경에서 누락되었습니다.
프로덕션 환경을 위한 datasource 구성이 필요합니다:
|
||
| @EnableJpaRepositories( | ||
| basePackages = "org.sejongisc.backend.stock.repository", | ||
| entityManagerFactoryRef = "stockEntityManagerFactory", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.