Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ buildNumber.properties
**/build/
.gradle
gradle-app.setting
!gradle-wrapper.jar
!gradle-wrapper.properties
.gradletasknamecache

# Java
Expand All @@ -31,6 +29,11 @@ gradle-app.setting
hs_err_pid*
replay_pid*

# Gradle wrapper — these exceptions MUST come after *.jar above.
# Git applies the LAST matching rule, so an exception placed before *.jar is silently overridden.
!gradle/wrapper/gradle-wrapper.jar
!gradle/wrapper/gradle-wrapper.properties

# Eclipse
# CRITICAL: For multi-module projects, DO NOT ignore .project, .classpath, or .settings/
# These files MUST be committed for clean customer import experience
Expand Down Expand Up @@ -59,6 +62,7 @@ local.properties
*.pydevproject
.cproject
.autotools
.externalToolBuilders/
.launches/

# IntelliJ IDEA
Expand Down
4 changes: 2 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
distributionType=only-script
wrapperVersion=3.3.4
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip
2 changes: 1 addition & 1 deletion cics-java-liberty-springboot-jpa-app/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21/"/>
<classpathentry kind="con" path="com.ibm.cics.explorer.sdk.web.LIBERTY_LIBRARIES/L./V.61/JE.JEE_V10_R0">
<classpathentry kind="con" path="com.ibm.cics.explorer.sdk.web.LIBERTY_LIBRARIES/L./V.61/JE.JEE_V11_R0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<faceted-project>
<fixed facet="jst.java"/>
<fixed facet="jst.web"/>
<installed facet="jst.web" version="6.0"/>
<installed facet="jst.web" version="6.1"/>
<installed facet="jst.java" version="21"/>
</faceted-project>
2 changes: 1 addition & 1 deletion cics-java-liberty-springboot-jpa-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ eclipse
{
facet
{
facet name: 'jst.web', version: '6.0'
facet name: 'jst.web', version: '6.1'
}
component
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.util.HtmlUtils;

/**
* REST controller used to direct incoming requests to the correct business service.
Expand Down Expand Up @@ -105,7 +106,7 @@ public Optional<Emp> listEmployee(@PathVariable("empno") String empno)
public String addEmp(@PathVariable("firstName") String firstName, @PathVariable("lastName") String lastName)
{
String result = employeeService.addEmployee(firstName,lastName);
return result;
return HtmlUtils.htmlEscape(result);
}

/**
Expand All @@ -120,7 +121,7 @@ public String addEmp(@PathVariable("firstName") String firstName, @PathVariable(
public String delEmployee(@PathVariable("empNo") String empNo)
{
String result = employeeService.deleteEmployee(empNo);
return result;
return HtmlUtils.htmlEscape(result);
}

/**
Expand All @@ -136,7 +137,7 @@ public String delEmployee(@PathVariable("empNo") String empNo)
public String updateEmp(@PathVariable("empNo") String empNo, @PathVariable("newSalary") long newSalary)
{
String result = employeeService.updateEmployee(empNo, newSalary);
return result;
return HtmlUtils.htmlEscape(result);
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
version="6.0">
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_1.xsd"
version="6.1">
<display-name>cics-java-liberty-springboot-jpa</display-name>
<login-config>
<auth-method>BASIC</auth-method>
Expand Down
2 changes: 1 addition & 1 deletion cics-java-liberty-springboot-jpa-cicsbundle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ============================================================================
plugins
{
id 'com.ibm.cics.bundle' version '1.0.8'
id 'com.ibm.cics.bundle' version '1.0.13'
}

// ============================================================================
Expand Down
2 changes: 1 addition & 1 deletion cics-java-liberty-springboot-jpa-cicsbundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<plugin>
<groupId>com.ibm.cics</groupId>
<artifactId>cics-bundle-maven-plugin</artifactId>
<version>1.0.8</version>
<version>2.0.5</version>
<extensions>true</extensions>
<configuration>
<defaultjvmserver>${cics.jvmserver}</defaultjvmserver>
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
41 changes: 26 additions & 15 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 15 additions & 12 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading