Skip to content

Commit cedbcd3

Browse files
up
1 parent 3dee81d commit cedbcd3

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

spring-ai-alibaba-jmanus/src/main/java/com/alibaba/cloud/ai/example/manus/tool/browser/ChromeDriverService.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -315,18 +315,11 @@ private DriverWrapper createNewDriverForSpringBoot() {
315315
}
316316

317317
/**
318-
* Detect if running in Spring Boot environment
318+
* Detect if running in Spring Boot environment , default return true because we are
319+
* in spring boot env .
319320
*/
320321
private boolean isSpringBootEnvironment() {
321-
try {
322-
// Simple check for Spring Boot application class
323-
Class.forName("org.springframework.boot.SpringApplication");
324-
return true;
325-
}
326-
catch (ClassNotFoundException e) {
327-
// If Spring Boot is not found, assume standard environment
328-
return false;
329-
}
322+
return true;
330323
}
331324

332325
/**

0 commit comments

Comments
 (0)