Class ProguardController
java.lang.Object
cn.net.pap.example.proguard.controller.ProguardController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatch()cacheControlTest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Set Cache-Control in responseorg.springframework.http.ResponseEntity<String>eTagTest()findAll()org.springframework.data.domain.Page<Proguard>getProguardByProguardId(Long proguardId) org.springframework.http.ResponseEntity<String>LAST_MODIFIED 响应头处理longtime()print()Cache Test Interface .org.springframework.http.ResponseEntity<Proguard>searchAllByProguardName(String proguardName) updateProguardByProguardId(Long proguardId) userDir()
-
Constructor Details
-
ProguardController
public ProguardController()
-
-
Method Details
-
demoProperties
@GetMapping(value="/demoProperties", produces="application/json;charset=UTF-8") public DemoProperties demoProperties() -
userDir
-
batch
-
print
Cache Test Interface .- Returns:
-
cacheControlTest
@GetMapping("cacheControlTest") public String cacheControlTest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Set Cache-Control in response- Parameters:
request-response-- Returns:
-
lastModifiedTest
@GetMapping("/lastModifiedTest") public org.springframework.http.ResponseEntity<String> lastModifiedTest()LAST_MODIFIED 响应头处理- Returns:
-
eTagTest
-
saveAndFlush
@GetMapping("/saveAndFlush") public org.springframework.http.ResponseEntity<Proguard> saveAndFlush() -
getProguardByProguardId
-
updateProguardByProguardId
-
searchAllByProguardName
-
findAll
-
findNaive
-
saveAllAndFlush
-
saveAllAndFlush2
-
saveAndUpdate
-
postSave
-
exceptionRandom
@GetMapping(value="/exceptionRandom", produces="application/json;charset=UTF-8") public String exceptionRandom() -
longtime
-