Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSCore
Commits
40c9a23b
Commit
40c9a23b
authored
5 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Added cors filter
parent
2c56737e
No related branches found
No related tags found
2 merge requests
!5
Develop
,
!4
Ipm decisions
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
nb-configuration.xml
+1
-0
1 addition, 0 deletions
nb-configuration.xml
pom.xml
+2
-2
2 additions, 2 deletions
pom.xml
src/main/java/no/nibio/vips/core/VIPSCoreApplication.java
+2
-6
2 additions, 6 deletions
src/main/java/no/nibio/vips/core/VIPSCoreApplication.java
with
5 additions
and
8 deletions
nb-configuration.xml
+
1
−
0
View file @
40c9a23b
...
...
@@ -18,5 +18,6 @@ Any value defined here will override the pom.xml file value but is only applicab
<netbeans.hint.license>
nibio_open_source_license.ftl
</netbeans.hint.license>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
WildFly
</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>
1.7-web
</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>
<netbeans.hint.jdkPlatform>
JDK_1.8_SUN
</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
This diff is collapsed.
Click to expand it.
pom.xml
+
2
−
2
View file @
40c9a23b
...
...
@@ -127,8 +127,8 @@
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
2.0.2
</version>
<configuration>
<source>
1
0
</source>
<target>
1
0
</target>
<source>
1
.8
</source>
<target>
1
.8
</target>
</configuration>
</plugin>
<plugin>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/no/nibio/vips/core/VIPSCoreApplication.java
+
2
−
6
View file @
40c9a23b
...
...
@@ -19,10 +19,12 @@
package
no.nibio.vips.core
;
import
java.util.HashSet
;
import
java.util.Set
;
import
javax.ws.rs.ApplicationPath
;
import
javax.ws.rs.core.Application
;
/**
* Responsible for adding REST resources
* @copyright 2013-2018 {@link http://www.nibio.no NIBIO}
...
...
@@ -49,13 +51,7 @@ public class VIPSCoreApplication extends Application
resources
.
add
(
no
.
nibio
.
vips
.
core
.
service
.
ModelResourceImpl
.
class
);
}
/**
* Do not modify addRestResourceClasses() method.
* It is automatically re-generated by NetBeans REST support to populate
* given list with all resources defined in the project.
*/
private
void
addRestResourceClasses
(
Set
<
Class
<?>>
resources
)
{
resources
.
add
(
no
.
nibio
.
vips
.
core
.
config
.
JacksonConfig
.
class
);
resources
.
add
(
no
.
nibio
.
vips
.
core
.
service
.
ModelResourceImpl
.
class
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment