将http://192.168.xx.xx/model/listjobs.html?type=cevsa&user=forest做为参数传递

本文介绍了如何在URL参数传递中遇到特殊字符如'&'时,通过使用字符串替换技巧,确保参数正确被接收和解析,从而实现更稳定的模型计算功能。

url = “http://192.168.xx.xx/model/listjobs.html?type=cevsa&user=forest”

<a href="model_calc.jsp?url=${url}">模型计算</a>

以上面的方式进行参数传递,因为url中有“&”,所以传递过去model_calc.jsp把"&"作为参数分割,接收了url和user两个参数


为了将url的值整体作为一个参数传递接收,以下面的方式进行传递

<a href="model_calc.jsp?url=${fn:replace(url,'&','@replace')}">模型计算</a>

在接收参数时,再将“@replace”替换为“&”;



. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/  :: Spring Boot ::   (v3.3.4) {"timestamp":"2025-10-14 11:47:43.176","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"j.c.s.s.Application","MethodName":"logStarting","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"Starting Application using Java 17.0.12 with PID 12976 (D:\SY22BNEC31\新しいフォルダー (5)\shelf-batch-sshb0051-application-develop\build\bin\main started by sycnc in D:\SY22BNEC31\新しいフォルダー (5)\shelf-batch-sshb0051-application-develop\build)"} {"timestamp":"2025-10-14 11:47:43.182","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"j.c.s.s.Application","MethodName":"logStartupProfileInfo","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"No active profile set, falling back to 1 default profile: "default""} {"timestamp":"2025-10-14 11:47:43.764","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"o.s.b.c.c.a.BatchRegistrar","MethodName":"registerBeanDefinitions","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"Finished Spring Batch infrastructure beans configuration in 6 ms."} {"timestamp":"2025-10-14 11:47:44.182","severity":"WARNING","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker","MethodName":"postProcessAfterInitialization","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"Bean 'jobRegistry' of type [org.springframework.batch.core.configuration.support.MapJobRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies."} {"timestamp":"2025-10-14 11:47:44.290","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"c.z.h.HikariDataSource","MethodName":"getConnection","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"HikariPool-1 - Starting..."} {"timestamp":"2025-10-14 11:47:44.579","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"c.z.h.p.HikariPool","MethodName":"checkFailFast","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:instantdb user=SA"} {"timestamp":"2025-10-14 11:47:44.581","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"c.z.h.HikariDataSource","MethodName":"getConnection","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"HikariPool-1 - Start completed."} {"timestamp":"2025-10-14 11:47:44.668","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"o.s.b.c.r.s.JobRepositoryFactoryBean","MethodName":"afterPropertiesSet","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"No database type set, using meta data indicating: H2"} {"timestamp":"2025-10-14 11:47:44.693","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"o.s.b.c.l.s.SimpleJobLauncher","MethodName":"afterPropertiesSet","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"No TaskExecutor has been set, defaulting to synchronous executor."} {"timestamp":"2025-10-14 11:47:45.784","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"o.s.b.c.c.a.BatchObservabilityBeanPostProcessor","MethodName":"postProcessAfterInitialization","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"No Micrometer observation registry found, defaulting to ObservationRegistry.NOOP"} {"timestamp":"2025-10-14 11:47:45.796","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"o.s.b.c.c.a.BatchObservabilityBeanPostProcessor","MethodName":"postProcessAfterInitialization","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"No Micrometer observation registry found, defaulting to ObservationRegistry.NOOP"} {"timestamp":"2025-10-14 11:47:45.805","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"j.c.s.s.Application","MethodName":"logStarted","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"Started Application in 3.168 seconds (process running for 4.297)"} {"timestamp":"2025-10-14 11:47:45.811","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"o.s.b.a.l.ConditionEvaluationReportLogger","MethodName":"logMessage","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":" Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled."} {"timestamp":"2025-10-14 11:47:45.832","severity":"ERROR","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"o.s.b.SpringApplication","MethodName":"reportFailure","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"Application run failed"} java.lang.IllegalStateException: Failed to execute ApplicationRunner at org.springframework.boot.SpringApplication.lambda$callRunner$6(SpringApplication.java:797) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:66) ~[spring-core-6.1.13.jar:6.1.13] at org.springframework.util.function.ThrowingConsumer$1.accept(ThrowingConsumer.java:88) ~[spring-core-6.1.13.jar:6.1.13] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:798) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:786) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.lambda$callRunners$3(SpringApplication.java:774) [spring-boot-3.3.4.jar:3.3.4] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?] at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) ~[?:?] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) ~[?:?] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:774) [spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.run(SpringApplication.java:342) [spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1363) [spring-boot-3.3.4.jar:3.3.4] at jp.co.sej.ssc.Application.main(Application.java:63) [main/:?] Caused by: org.springframework.batch.core.launch.NoSuchJobException: No job configuration with the name [myJob] was registered at org.springframework.batch.core.configuration.support.MapJobRegistry.getJob(MapJobRegistry.java:68) ~[spring-batch-core-5.1.2.jar:5.1.2] at jp.co.sej.ssc.common.ApplicationRunner.run(ApplicationRunner.java:120) ~[main/:?] at org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunner.run(JobLauncherApplicationRunner.java:164) ~[spring-boot-autoconfigure-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.lambda$callRunner$4(SpringApplication.java:786) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.util.function.ThrowingConsumer$1.acceptWithException(ThrowingConsumer.java:83) ~[spring-core-6.1.13.jar:6.1.13] at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:60) ~[spring-core-6.1.13.jar:6.1.13] ... 16 more {"timestamp":"2025-10-14 11:47:45.846","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"c.z.h.HikariDataSource","MethodName":"close","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"HikariPool-1 - Shutdown initiated..."} {"timestamp":"2025-10-14 11:47:45.849","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"c.z.h.HikariDataSource","MethodName":"close","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"HikariPool-1 - Shutdown completed."} {"timestamp":"2025-10-14 11:47:45.850","severity":"ERROR","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"j.c.s.s.Application","MethodName":"main","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"異常 exitCode : 100 Exception : java.lang.IllegalStateException: Failed to execute ApplicationRunner"} {"timestamp":"2025-10-14 11:47:45.850","severity":"INFO","logging.googleapis.com/labels":{"zwb_log":"batch","ProcessName":"shelf-batch-sshb0051-application","ProcessID":"12976","ThreadID":"main","ClassName":"j.c.s.s.Application","MethodName":"main","JOBID":"myJob","DAGID":"","TASKID":"","REQID":""},"message":"終了"}
10-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值