File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed
src/main/java/edu/kit/datamanager/mappingservice/configuration Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 40
40
- name : Checkout repository
41
41
uses : actions/checkout@v3
42
42
43
+ - name : Set up OpenJDK
44
+ uses : actions/setup-java@v1
45
+ with :
46
+ java-version : ${{ matrix.jdk }}
47
+
43
48
# Initializes the CodeQL tools for scanning.
44
49
- name : Initialize CodeQL
45
50
uses : github/codeql-action/init@v2
Original file line number Diff line number Diff line change @@ -41,13 +41,6 @@ public class ApplicationProperties extends GenericPluginProperties {
41
41
@ Value ("${mapping-service.pythonLocation}" )
42
42
private URL pythonLocation ;
43
43
44
- // /**
45
- // * The path to the gemma mapping script 'mapping_single.py'
46
- // */
47
- // @edu.kit.datamanager.annotations.LocalFileURL
48
- // @Value("${mapping-service.gemmaLocation}")
49
- // private URL gemmaLocation;
50
-
51
44
/**
52
45
* The absolute path where the mappings are stored.
53
46
*/
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ public class OpenApiDefinitions {
33
33
public OpenAPI customOpenAPI () {
34
34
return new OpenAPI ()
35
35
.components (new Components ())
36
- .info (new Info ().title ("mapping-service - RESTful API" ).
37
- description ("This webpage describes the RESTful API of the KIT Data Manager mapping-service ." ).
36
+ .info (new Info ().title ("Mapping-Service - RESTful API" ).
37
+ description ("This webpage describes the RESTful API of the KIT Data Manager Mapping-Service ." ).
38
38
version ("0.1" ).
39
39
contact (
40
40
new Contact ().
Original file line number Diff line number Diff line change @@ -74,19 +74,17 @@ public void configure(WebSecurity web) {
74
74
}
75
75
76
76
@ Bean
77
- public FilterRegistrationBean corsFilter () {
77
+ public FilterRegistrationBean < CorsFilter > corsFilter () {
78
78
final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource ();
79
79
CorsConfiguration config = new CorsConfiguration ();
80
- // config.setAllowCredentials(true);
81
- // config.setAllowedOrigins(Collections.singletonList("*"));
82
- config .addAllowedOrigin ("*" ); // @Value: http://localhost:8095
80
+ config .addAllowedOrigin ("*" );
83
81
config .addAllowedHeader ("*" );
84
82
config .addAllowedMethod ("*" );
85
83
config .addExposedHeader ("Content-Range" );
86
84
config .addExposedHeader ("ETag" );
87
85
88
86
source .registerCorsConfiguration ("/**" , config );
89
- FilterRegistrationBean bean = new FilterRegistrationBean (new CorsFilter (source ));
87
+ FilterRegistrationBean < CorsFilter > bean = new FilterRegistrationBean <> (new CorsFilter (source ));
90
88
bean .setOrder (0 );
91
89
return bean ;
92
90
}
You can’t perform that action at this time.
0 commit comments