Spaces:
Sleeping
Sleeping
Commit
·
5c6940e
1
Parent(s):
0aeaf96
local url changed
Browse files- .idea/compiler.xml +18 -0
- .idea/encodings.xml +6 -0
- .idea/jarRepositories.xml +20 -0
- .idea/material_theme_project_new.xml +12 -0
- .idea/misc.xml +12 -0
- .idea/vcs.xml +3 -1
- .idea/workspace.xml +77 -4
- src/main/java/com/krishna/controller/CommentController.java +1 -1
- src/main/java/com/krishna/controller/LikeController.java +1 -1
- src/main/java/com/krishna/controller/PostController.java +1 -1
- src/main/java/com/krishna/controller/UserController.java +1 -1
- src/main/resources/application.properties +1 -3
- target/classes/application.properties +24 -0
- target/classes/com/krishna/FormApplication.class +0 -0
- target/classes/com/krishna/config/WebConfig$1.class +0 -0
- target/classes/com/krishna/config/WebConfig.class +0 -0
- target/classes/com/krishna/controller/CommentController.class +0 -0
- target/classes/com/krishna/controller/LikeController.class +0 -0
- target/classes/com/krishna/controller/PostController.class +0 -0
- target/classes/com/krishna/controller/UserController.class +0 -0
- target/classes/com/krishna/dto/CommentDTO.class +0 -0
- target/classes/com/krishna/dto/LoginResponseDTO.class +0 -0
- target/classes/com/krishna/dto/PostRequestDTO.class +0 -0
- target/classes/com/krishna/dto/PostUpdateDTO.class +0 -0
- target/classes/com/krishna/model/CommentModel.class +0 -0
- target/classes/com/krishna/model/LikeModel.class +0 -0
- target/classes/com/krishna/model/PostModel.class +0 -0
- target/classes/com/krishna/model/UserModel.class +0 -0
- target/classes/com/krishna/repository/CommentRepository.class +0 -0
- target/classes/com/krishna/repository/LikeRepository.class +0 -0
- target/classes/com/krishna/repository/PostRepository.class +0 -0
- target/classes/com/krishna/repository/UserRepository.class +0 -0
- target/classes/com/krishna/service/CommentService.class +0 -0
- target/classes/com/krishna/service/LikeService.class +0 -0
.idea/compiler.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="CompilerConfiguration">
|
| 4 |
+
<annotationProcessing>
|
| 5 |
+
<profile name="Maven default annotation processors profile" enabled="true">
|
| 6 |
+
<sourceOutputDir name="target/generated-sources/annotations" />
|
| 7 |
+
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
| 8 |
+
<outputRelativeToContentRoot value="true" />
|
| 9 |
+
<module name="My_media" />
|
| 10 |
+
</profile>
|
| 11 |
+
</annotationProcessing>
|
| 12 |
+
</component>
|
| 13 |
+
<component name="JavacSettings">
|
| 14 |
+
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
| 15 |
+
<module name="My_media" options="-parameters" />
|
| 16 |
+
</option>
|
| 17 |
+
</component>
|
| 18 |
+
</project>
|
.idea/encodings.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="Encoding">
|
| 4 |
+
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
| 5 |
+
</component>
|
| 6 |
+
</project>
|
.idea/jarRepositories.xml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="RemoteRepositoriesConfiguration">
|
| 4 |
+
<remote-repository>
|
| 5 |
+
<option name="id" value="central" />
|
| 6 |
+
<option name="name" value="Central Repository" />
|
| 7 |
+
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
| 8 |
+
</remote-repository>
|
| 9 |
+
<remote-repository>
|
| 10 |
+
<option name="id" value="central" />
|
| 11 |
+
<option name="name" value="Maven Central repository" />
|
| 12 |
+
<option name="url" value="https://repo1.maven.org/maven2" />
|
| 13 |
+
</remote-repository>
|
| 14 |
+
<remote-repository>
|
| 15 |
+
<option name="id" value="jboss.community" />
|
| 16 |
+
<option name="name" value="JBoss Community repository" />
|
| 17 |
+
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
| 18 |
+
</remote-repository>
|
| 19 |
+
</component>
|
| 20 |
+
</project>
|
.idea/material_theme_project_new.xml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="MaterialThemeProjectNewConfig">
|
| 4 |
+
<option name="metadata">
|
| 5 |
+
<MTProjectMetadataState>
|
| 6 |
+
<option name="migrated" value="true" />
|
| 7 |
+
<option name="pristineConfig" value="false" />
|
| 8 |
+
<option name="userId" value="-3612eed2:195ac822fff:-7ffe" />
|
| 9 |
+
</MTProjectMetadataState>
|
| 10 |
+
</option>
|
| 11 |
+
</component>
|
| 12 |
+
</project>
|
.idea/misc.xml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
| 4 |
+
<component name="MavenProjectsManager">
|
| 5 |
+
<option name="originalFiles">
|
| 6 |
+
<list>
|
| 7 |
+
<option value="$PROJECT_DIR$/pom.xml" />
|
| 8 |
+
</list>
|
| 9 |
+
</option>
|
| 10 |
+
</component>
|
| 11 |
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK" />
|
| 12 |
+
</project>
|
.idea/vcs.xml
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<project version="4">
|
| 3 |
-
<component name="VcsDirectoryMappings"
|
|
|
|
|
|
|
| 4 |
</project>
|
|
|
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<project version="4">
|
| 3 |
+
<component name="VcsDirectoryMappings">
|
| 4 |
+
<mapping directory="" vcs="Git" />
|
| 5 |
+
</component>
|
| 6 |
</project>
|
.idea/workspace.xml
CHANGED
|
@@ -1,8 +1,81 @@
|
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<project version="4">
|
| 3 |
-
<component name="
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
}</component>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
</project>
|
|
|
|
| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<project version="4">
|
| 3 |
+
<component name="AutoImportSettings">
|
| 4 |
+
<option name="autoReloadType" value="SELECTIVE" />
|
| 5 |
+
</component>
|
| 6 |
+
<component name="ChangeListManager">
|
| 7 |
+
<list default="true" id="e863e894-7caf-4bae-a73e-d26622ba97c6" name="Changes" comment="">
|
| 8 |
+
<change beforePath="$PROJECT_DIR$/.idea/vcs.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
|
| 9 |
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
| 10 |
+
</list>
|
| 11 |
+
<option name="SHOW_DIALOG" value="false" />
|
| 12 |
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
| 13 |
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
| 14 |
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
| 15 |
+
</component>
|
| 16 |
+
<component name="Git.Settings">
|
| 17 |
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
| 18 |
+
</component>
|
| 19 |
+
<component name="ProjectColorInfo">{
|
| 20 |
+
"associatedIndex": 2
|
| 21 |
}</component>
|
| 22 |
+
<component name="ProjectId" id="2y2YfwaofGUI2RfW8Z4vGu2BTnq" />
|
| 23 |
+
<component name="ProjectViewState">
|
| 24 |
+
<option name="hideEmptyMiddlePackages" value="true" />
|
| 25 |
+
<option name="showLibraryContents" value="true" />
|
| 26 |
+
</component>
|
| 27 |
+
<component name="PropertiesComponent"><![CDATA[{
|
| 28 |
+
"keyToString": {
|
| 29 |
+
"Application.FormApplication.executor": "Run",
|
| 30 |
+
"Docker.docker-compose.yml: Compose Deployment.executor": "Run",
|
| 31 |
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
| 32 |
+
"RunOnceActivity.git.unshallow": "true",
|
| 33 |
+
"git-widget-placeholder": "main",
|
| 34 |
+
"kotlin-language-version-configured": "true",
|
| 35 |
+
"last_opened_file_path": "C:/code/sathish/project",
|
| 36 |
+
"settings.editor.selected.configurable": "configurable.group.appearance"
|
| 37 |
+
}
|
| 38 |
+
}]]></component>
|
| 39 |
+
<component name="RunManager">
|
| 40 |
+
<configuration name="FormApplication" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
| 41 |
+
<option name="MAIN_CLASS_NAME" value="com.krishna.FormApplication" />
|
| 42 |
+
<module name="My_media" />
|
| 43 |
+
<extension name="coverage">
|
| 44 |
+
<pattern>
|
| 45 |
+
<option name="PATTERN" value="com.krishna.*" />
|
| 46 |
+
<option name="ENABLED" value="true" />
|
| 47 |
+
</pattern>
|
| 48 |
+
</extension>
|
| 49 |
+
<method v="2">
|
| 50 |
+
<option name="Make" enabled="true" />
|
| 51 |
+
</method>
|
| 52 |
+
</configuration>
|
| 53 |
+
<configuration default="true" type="JetRunConfigurationType">
|
| 54 |
+
<module name="mymedia-java-backend" />
|
| 55 |
+
<method v="2">
|
| 56 |
+
<option name="Make" enabled="true" />
|
| 57 |
+
</method>
|
| 58 |
+
</configuration>
|
| 59 |
+
<configuration default="true" type="KotlinStandaloneScriptRunConfigurationType">
|
| 60 |
+
<module name="mymedia-java-backend" />
|
| 61 |
+
<option name="filePath" />
|
| 62 |
+
<method v="2" />
|
| 63 |
+
</configuration>
|
| 64 |
+
<recent_temporary>
|
| 65 |
+
<list>
|
| 66 |
+
<item itemvalue="Application.FormApplication" />
|
| 67 |
+
</list>
|
| 68 |
+
</recent_temporary>
|
| 69 |
+
</component>
|
| 70 |
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
| 71 |
+
<component name="TaskManager">
|
| 72 |
+
<task active="true" id="Default" summary="Default task">
|
| 73 |
+
<changelist id="e863e894-7caf-4bae-a73e-d26622ba97c6" name="Changes" comment="" />
|
| 74 |
+
<created>1749034242590</created>
|
| 75 |
+
<option name="number" value="Default" />
|
| 76 |
+
<option name="presentableId" value="Default" />
|
| 77 |
+
<updated>1749034242590</updated>
|
| 78 |
+
</task>
|
| 79 |
+
<servers />
|
| 80 |
+
</component>
|
| 81 |
</project>
|
src/main/java/com/krishna/controller/CommentController.java
CHANGED
|
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.*;
|
|
| 10 |
|
| 11 |
import java.util.List;
|
| 12 |
|
| 13 |
-
@CrossOrigin(origins = {"http://localhost:8080", "http://localhost:8081", "http://127.0.0.1:5500", "http://localhost:5173/", "https://my-media-718.netlify.app/"})
|
| 14 |
@RestController
|
| 15 |
@RequestMapping("/comments")
|
| 16 |
public class CommentController {
|
|
|
|
| 10 |
|
| 11 |
import java.util.List;
|
| 12 |
|
| 13 |
+
@CrossOrigin(origins = {"http://localhost:8080", "http://localhost:8081", "http://127.0.0.1:5501", "http://127.0.0.1:5500", "http://localhost:5173/", "https://my-media-718.netlify.app/"})
|
| 14 |
@RestController
|
| 15 |
@RequestMapping("/comments")
|
| 16 |
public class CommentController {
|
src/main/java/com/krishna/controller/LikeController.java
CHANGED
|
@@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.*;
|
|
| 7 |
|
| 8 |
import java.util.UUID;
|
| 9 |
|
| 10 |
-
@CrossOrigin(origins = {"http://localhost:8080", "http://localhost:8081", "http://127.0.0.1:5500", "http://localhost:5173/", "https://my-media-718.netlify.app"})
|
| 11 |
@RestController
|
| 12 |
@RequestMapping("/likes")
|
| 13 |
public class LikeController {
|
|
|
|
| 7 |
|
| 8 |
import java.util.UUID;
|
| 9 |
|
| 10 |
+
@CrossOrigin(origins = {"http://localhost:8080", "http://localhost:8081", "http://127.0.0.1:5501", "http://127.0.0.1:5500", "http://localhost:5173/", "https://my-media-718.netlify.app/"})
|
| 11 |
@RestController
|
| 12 |
@RequestMapping("/likes")
|
| 13 |
public class LikeController {
|
src/main/java/com/krishna/controller/PostController.java
CHANGED
|
@@ -18,7 +18,7 @@ import java.util.UUID;
|
|
| 18 |
|
| 19 |
@RestController
|
| 20 |
@RequestMapping("/posts")
|
| 21 |
-
@CrossOrigin(origins = {"http://localhost:8080", "http://localhost:8081", "http://127.0.0.1:5500", "http://localhost:5173/", "https://my-media-718.netlify.app/"})
|
| 22 |
public class PostController {
|
| 23 |
|
| 24 |
@Autowired
|
|
|
|
| 18 |
|
| 19 |
@RestController
|
| 20 |
@RequestMapping("/posts")
|
| 21 |
+
@CrossOrigin(origins = {"http://localhost:8080", "http://localhost:8081", "http://127.0.0.1:5501", "http://127.0.0.1:5500", "http://localhost:5173/", "https://my-media-718.netlify.app/"})
|
| 22 |
public class PostController {
|
| 23 |
|
| 24 |
@Autowired
|
src/main/java/com/krishna/controller/UserController.java
CHANGED
|
@@ -15,7 +15,7 @@ import java.util.Date;
|
|
| 15 |
import java.util.List;
|
| 16 |
import java.util.Optional;
|
| 17 |
|
| 18 |
-
@CrossOrigin(origins = {"http://localhost:8080", "http://localhost:8081", "http://127.0.0.1:5500", "http://localhost:5173/", "https://my-media-718.netlify.app/"})
|
| 19 |
@RestController
|
| 20 |
@RequestMapping("/user")
|
| 21 |
public class UserController {
|
|
|
|
| 15 |
import java.util.List;
|
| 16 |
import java.util.Optional;
|
| 17 |
|
| 18 |
+
@CrossOrigin(origins = {"http://localhost:8080", "http://localhost:8081", "http://127.0.0.1:5501", "http://127.0.0.1:5500", "http://localhost:5173/", "https://my-media-718.netlify.app/"})
|
| 19 |
@RestController
|
| 20 |
@RequestMapping("/user")
|
| 21 |
public class UserController {
|
src/main/resources/application.properties
CHANGED
|
@@ -19,6 +19,4 @@ spring.jackson.property-naming-strategy=SNAKE_CASE
|
|
| 19 |
spring.cache.type=simple
|
| 20 |
|
| 21 |
# Server & Logging
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
server.port=7860
|
|
|
|
| 19 |
spring.cache.type=simple
|
| 20 |
|
| 21 |
# Server & Logging
|
| 22 |
+
server.port=8080
|
|
|
|
|
|
target/classes/application.properties
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MySQL Configuration
|
| 2 |
+
spring.datasource.url=jdbc:mysql://mysql-23eb48e0-krishnamoorthyrishi0718-ce62.j.aivencloud.com:16601/mystara?sslMODE=REQUIRED
|
| 3 |
+
spring.datasource.username=avnadmin
|
| 4 |
+
spring.datasource.password=AVNS_kdVztjkRAhIuNFH1d-B
|
| 5 |
+
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
| 6 |
+
|
| 7 |
+
# Profiles
|
| 8 |
+
spring.profiles.active=docker
|
| 9 |
+
|
| 10 |
+
# Hibernate / JPA
|
| 11 |
+
spring.jpa.hibernate.ddl-auto=update
|
| 12 |
+
spring.jpa.show-sql=true
|
| 13 |
+
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
|
| 14 |
+
|
| 15 |
+
# JSON naming
|
| 16 |
+
spring.jackson.property-naming-strategy=SNAKE_CASE
|
| 17 |
+
|
| 18 |
+
# Caching
|
| 19 |
+
spring.cache.type=simple
|
| 20 |
+
|
| 21 |
+
# Server & Logging
|
| 22 |
+
#server.port=8080
|
| 23 |
+
|
| 24 |
+
server.port=7860
|
target/classes/com/krishna/FormApplication.class
ADDED
|
Binary file (723 Bytes). View file
|
|
|
target/classes/com/krishna/config/WebConfig$1.class
ADDED
|
Binary file (1.67 kB). View file
|
|
|
target/classes/com/krishna/config/WebConfig.class
ADDED
|
Binary file (739 Bytes). View file
|
|
|
target/classes/com/krishna/controller/CommentController.class
ADDED
|
Binary file (3.71 kB). View file
|
|
|
target/classes/com/krishna/controller/LikeController.class
ADDED
|
Binary file (2.51 kB). View file
|
|
|
target/classes/com/krishna/controller/PostController.class
ADDED
|
Binary file (5.64 kB). View file
|
|
|
target/classes/com/krishna/controller/UserController.class
ADDED
|
Binary file (7.52 kB). View file
|
|
|
target/classes/com/krishna/dto/CommentDTO.class
ADDED
|
Binary file (1.21 kB). View file
|
|
|
target/classes/com/krishna/dto/LoginResponseDTO.class
ADDED
|
Binary file (1.93 kB). View file
|
|
|
target/classes/com/krishna/dto/PostRequestDTO.class
ADDED
|
Binary file (1.3 kB). View file
|
|
|
target/classes/com/krishna/dto/PostUpdateDTO.class
ADDED
|
Binary file (1.27 kB). View file
|
|
|
target/classes/com/krishna/model/CommentModel.class
ADDED
|
Binary file (2.11 kB). View file
|
|
|
target/classes/com/krishna/model/LikeModel.class
ADDED
|
Binary file (1.78 kB). View file
|
|
|
target/classes/com/krishna/model/PostModel.class
ADDED
|
Binary file (2.62 kB). View file
|
|
|
target/classes/com/krishna/model/UserModel.class
ADDED
|
Binary file (2.6 kB). View file
|
|
|
target/classes/com/krishna/repository/CommentRepository.class
ADDED
|
Binary file (523 Bytes). View file
|
|
|
target/classes/com/krishna/repository/LikeRepository.class
ADDED
|
Binary file (1.05 kB). View file
|
|
|
target/classes/com/krishna/repository/PostRepository.class
ADDED
|
Binary file (598 Bytes). View file
|
|
|
target/classes/com/krishna/repository/UserRepository.class
ADDED
|
Binary file (786 Bytes). View file
|
|
|
target/classes/com/krishna/service/CommentService.class
ADDED
|
Binary file (3.77 kB). View file
|
|
|
target/classes/com/krishna/service/LikeService.class
ADDED
|
Binary file (3.57 kB). View file
|
|
|