<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/view/" />
<property name="suffix" value=".jsp" />
</bean>
views
mvn clean tomcat:run-war
mvn tomcat7:run-war
Running war on http://localhost:8080/spring-view
STDERR
в баш тоже используется 1>&2 echo
jenkins-docker-certs
)- появится там (в /certs/client
) ...echo_stdout_stderr_test.cmd
@echo OFF
echo output message 1
1>&2 echo error message 1
echo output message 2
1>&2 echo error message 2
exit /b 0
read_callee_stdout_stderr.ps1
# based on: https://stackoverflow.com/questions/24222088/capture-program-stdout-and-stderr-to-separate-variables
$script = 'echo_stdout_stderr_test.cmd'
$type = [System.Management.Automation.ErrorRecord]
$combined = invoke-expression -command ('{0}\{1} 2>&1' -f (resolve-path '.'), $script )
$child_stderr = $combined | where-object { $_ -is $type }
$child_stdout = $combined | where-object { $_ -isnot $type }
write-output ('child process output: {1}{0}' -f ( $child_stdout -join [char]10 ), [char] 10 )
write-output ('child process error: {1}{0}' -f ( $child_stderr -join [char]10 ), [char] 10 )
.\read_callee_stdout_stderr.ps1
child process output:
output message 1
output message 2
child process error:
error message 1
error message 2
@Autowired
private JavaMailSender javaMailSender;
javaMailSender
- нуль java.lang.NullPointerException: Cannot invoke "com.example.javatestapp.Services.EmailSenderService.sendEmail
TestController
свой обрвботчик try {
emailSenderService.sendEmail("mail@yandex.ru", "test message subject", "hello email sending");
return new MessageResponse("ok", 200);
} catch (Exception e) { return new MessageResponse("error", 500, e); } // вот это уберите дайте ошибке дойти до лога
params
иbody
некошерно и не должно работатьу меня вот
и к нему тесты там разные работающие